fix(pkg/rgled): turn output on

This commit is contained in:
Markus Pesch 2019-06-28 09:59:11 +02:00
parent 180a284780
commit 41653afebf
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -183,6 +183,13 @@ func (rgbled *DefaultRGBLED) switchColors(gpios []*types.GPIO, on bool) error {
pin := rpio.Pin(gpioInt) pin := rpio.Pin(gpioInt)
// if rpio.DetectEdge(rpio.P rpio.AnyEdge) {
// log.Println("Test")
// }
pin.Pull(rpio.PullOff)
pin.Output()
if on { if on {
pin.High() pin.High()
} else { } else {