Fix for "Changed rgb to use full pwm range"
This commit is contained in:
parent
2b8fbde659
commit
5b27d7ac0d
|
@ -80,6 +80,6 @@ class RGBLED:
|
|||
r = 255 - r
|
||||
g = 255 - g
|
||||
b = 255 - b
|
||||
self.led_r.duty_u16((r * 65535) / 255)
|
||||
self.led_g.duty_u16((g * 65535) / 255)
|
||||
self.led_b.duty_u16((b * 65535) / 255)
|
||||
self.led_r.duty_u16(int((r * 65535) / 255))
|
||||
self.led_g.duty_u16(int((g * 65535) / 255))
|
||||
self.led_b.duty_u16(int((b * 65535) / 255))
|
||||
|
|
Loading…
Reference in New Issue