1
0
mirror of https://github.com/kidoman/embd synced 2024-06-02 09:08:05 +02: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)
}