1
0
mirror of https://github.com/kidoman/embd synced 2024-12-22 12:50:19 +01:00
embd/samples/ledshort.go

26 lines
302 B
Go

// +build ignore
// Short LED example, works OOTB on a BBB.
package main
import (
"flag"
"time"
"github.com/kidoman/embd"
_ "github.com/kidoman/embd/host/bbb"
)
func main() {
flag.Parse()
embd.InitLED()
defer embd.CloseLED()
embd.LEDOn(3)
time.Sleep(1 * time.Second)
embd.LEDOff(3)
}