fix(pkg/rgled): turn output on
This commit is contained in:
		| @@ -183,6 +183,13 @@ func (rgbled *DefaultRGBLED) switchColors(gpios []*types.GPIO, on bool) error { | ||||
|  | ||||
| 		pin := rpio.Pin(gpioInt) | ||||
|  | ||||
| 		// if rpio.DetectEdge(rpio.P rpio.AnyEdge) { | ||||
| 		// 	log.Println("Test") | ||||
| 		// } | ||||
|  | ||||
| 		pin.Pull(rpio.PullOff) | ||||
| 		pin.Output() | ||||
|  | ||||
| 		if on { | ||||
| 			pin.High() | ||||
| 		} else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user