1
0
mirror of https://github.com/kidoman/embd synced 2024-12-22 21:00:05 +01:00
embd/samples/ledshort.go
2014-03-23 15:47:58 +05:30

21 lines
240 B
Go

// +build ignore
// Short LED example, works OOTB on a BBB.
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)
}