mirror of
https://github.com/kidoman/embd
synced 2024-10-31 23:38:44 +01:00
26 lines
302 B
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)
|
|
}
|