1
0
mirror of https://github.com/kidoman/embd synced 2024-12-22 21:00:05 +01:00

led: add missing LEDToggle method

This commit is contained in:
Karan Misra 2014-03-23 06:32:57 +05:30
parent 0405cf3f14
commit ebb9dc47fc

9
led.go
View File

@ -57,3 +57,12 @@ func LEDOff(key interface{}) error {
return led.Off() return led.Off()
} }
func LEDToggle(key interface{}) error {
led, err := NewLED(key)
if err != nil {
return err
}
return led.Toggle()
}