mirror of
https://github.com/kidoman/embd
synced 2024-12-22 21:00:05 +01:00
14 lines
191 B
Go
14 lines
191 B
Go
// +build ignore
|
|
|
|
package main
|
|
|
|
import "github.com/kidoman/embd"
|
|
|
|
func main() {
|
|
embd.InitGPIO()
|
|
defer embd.CloseGPIO()
|
|
|
|
embd.SetDirection(10, embd.Out)
|
|
embd.DigitalWrite(10, embd.High)
|
|
}
|