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:
parent
f7b316332e
commit
bf8a4be4d9
9 changed files with 322 additions and 3 deletions
18
samples/ledshort.go
Normal file
18
samples/ledshort.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue