func main() { embd.InitLED() defer embd.CloseLED() embd.LEDOn(3) time.Sleep(1 * time.Second) embd.LEDOff(3) }
func (b *BeagleBone) LedsCycle(repeat int) { b.LedsOff() for i := 0; i < repeat; i++ { for _, l := range b.LEDs { embd.LEDOn(l) time.Sleep(50 * time.Millisecond) embd.LEDOff(l) } } }
func (b *BeagleBone) LedsOn() { for _, l := range b.LEDs { embd.LEDOn(l) } }