mirror of
https://github.com/kidoman/embd
synced 2024-06-28 14:42:57 +02:00
22 lines
259 B
Go
22 lines
259 B
Go
// +build ignore
|
|
|
|
package main
|
|
|
|
import (
|
|
"flag"
|
|
|
|
"github.com/zlowred/embd"
|
|
|
|
_ "github.com/zlowred/embd/host/all"
|
|
)
|
|
|
|
func main() {
|
|
flag.Parse()
|
|
|
|
embd.InitGPIO()
|
|
defer embd.CloseGPIO()
|
|
|
|
embd.SetDirection(10, embd.Out)
|
|
embd.DigitalWrite(10, embd.High)
|
|
}
|