embd/samples/ledshort.go

21 lines
240 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 (
"time"
"github.com/kidoman/embd"
)
func main() {
embd.InitLED()
defer embd.CloseLED()
embd.LEDOn(3)
time.Sleep(1 * time.Second)
embd.LEDOff(3)
}