mirror of
https://github.com/kidoman/embd
synced 2024-11-13 21:18:55 +01:00
779096e668
this will allow people to use glog options (like -v=3) to increase verbosity of the log output
24 lines
263 B
Go
24 lines
263 B
Go
// +build ignore
|
|
|
|
// Short LED example, works OOTB on a BBB.
|
|
|
|
package main
|
|
|
|
import (
|
|
"flag"
|
|
"time"
|
|
|
|
"github.com/kidoman/embd"
|
|
)
|
|
|
|
func main() {
|
|
flag.Parse()
|
|
|
|
embd.InitLED()
|
|
defer embd.CloseLED()
|
|
|
|
embd.LEDOn(3)
|
|
time.Sleep(1 * time.Second)
|
|
embd.LEDOff(3)
|
|
}
|