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

14 lines
191 B
Go
Raw Normal View History

2014-03-02 08:06:34 +01:00
// +build ignore
package main
2014-03-02 20:21:23 +01:00
import "github.com/kidoman/embd"
func main() {
2014-03-02 20:21:23 +01:00
embd.InitGPIO()
defer embd.CloseGPIO()
2014-03-02 20:21:23 +01:00
embd.SetDirection(10, embd.Out)
embd.DigitalWrite(10, embd.High)
}