1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-03 03:47:33 +02:00

led: support led functionality on the bbb

This commit is contained in:
Karan Misra 2014-03-23 06:25:32 +05:30
parent f7b316332e
commit bf8a4be4d9
9 changed files with 322 additions and 3 deletions

18
samples/ledshort.go Normal file
View file

@ -0,0 +1,18 @@
// +build ignore
package main
import (
"time"
"github.com/kidoman/embd"
)
func main() {
embd.InitLED()
defer embd.CloseLED()
embd.LEDOn(3)
time.Sleep(1 * time.Second)
embd.LEDOff(3)
}