1
0
mirror of https://github.com/kidoman/embd synced 2024-12-22 21:00:05 +01:00
embd/samples/ledshort.go
Kunal Powar 779096e668 samples: enable flag parsing
this will allow people to use glog options (like -v=3) to increase
verbosity of the log output
2014-04-05 01:43:16 +05:30

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)
}