1
0
mirror of https://github.com/kidoman/embd synced 2024-11-14 05:28:54 +01:00
embd/samples/gpioshort.go

14 lines
188 B
Go
Raw Normal View History

2014-03-02 08:06:34 +01:00
// +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)
}