1
0
mirror of https://github.com/kidoman/embd synced 2024-12-22 12:50:19 +01:00
embd/samples/gpioshort.go
2014-03-02 12:36:34 +05:30

14 lines
188 B
Go

// +build ignore
package main
import "github.com/kidoman/embd/gpio"
func main() {
gpio.Open()
defer gpio.Close()
gpio.SetDirection(10, gpio.Out)
gpio.DigitalWrite(10, gpio.High)
}