1
0
mirror of https://github.com/kidoman/embd synced 2024-11-13 21:18:55 +01:00
embd/samples/ledshort.go

24 lines
263 B
Go
Raw Normal View History

// +build ignore
2014-03-23 11:17:58 +01:00
// 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)
}