1
0
mirror of https://github.com/kidoman/embd synced 2024-12-23 05:10:05 +01:00
embd/samples/gpioshort.go

14 lines
191 B
Go
Raw Normal View History

2014-03-02 12:36:34 +05:30
// +build ignore
package main
2014-03-03 00:51:23 +05:30
import "github.com/kidoman/embd"
func main() {
2014-03-03 00:51:23 +05:30
embd.InitGPIO()
defer embd.CloseGPIO()
2014-03-03 00:51:23 +05:30
embd.SetDirection(10, embd.Out)
embd.DigitalWrite(10, embd.High)
}