Fix for "Changed rgb to use full pwm range"

This commit is contained in:
ZodiusInfuser 2021-08-17 13:07:34 +01:00
parent 2b8fbde659
commit 5b27d7ac0d
1 changed files with 3 additions and 3 deletions

View File

@ -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))