mirror of
https://github.com/kidoman/embd
synced 2024-11-14 05:28:54 +01:00
14 lines
188 B
Go
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)
|
|
}
|