Help us shape the future of Go! Take the 2026 Go Developer Survey

gpio

package module
v0.0.0-...-fe62e58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2017 License: MIT Imports: 5 Imported by: 4

README

A Golang library to control the Raspberry Pi's GPIO interface

This is a library for controlling the Raspberry Pi's GPIO pins from Go programs, using the /sys filesystem instead of direct device file access.

How It Works

TBD

Acknowledgements

This project draws inspiration and borrows heavily from the work done by @alexellis on Docker on Raspberry Pis and his Blinkt Go libraries, themselves based on work by @gamaral for using the /sys/ fs interface instead of special libraries or elevated privileges to /dev/mem on the Raspberry Pi.

Requirements

A Raspberry Pi computer. It should work in all models but it's only been tested on the Raspberry Pi 3.

Usage

TBD

License

This library is made available under an MIT-style License. See LICENSE.

Documentation

Index

Constants

View Source
const OUTPUT = 1

OUTPUT is ...

Variables

This section is empty.

Functions

func Cleanup

func Cleanup()

Cleanup does finalization

func DigitalWrite

func DigitalWrite(pin int, val int)

DigitalWrite write a byte to a pin

func PinMode

func PinMode(pin int, val int)

PinMode sets the mode in which the Pin will operate

func Setup

func Setup()

Setup does basic initialization

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL