fix(pkg/rgled): turn output on
This commit is contained in:
parent
180a284780
commit
41653afebf
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user