Changed rgb to use full pwm range

This commit is contained in:
ZodiusInfuser 2021-08-17 12:59:36 +01:00
parent a9883788f8
commit 2b8fbde659
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 * 255)
self.led_g.duty_u16(g * 255)
self.led_b.duty_u16(b * 255)
self.led_r.duty_u16((r * 65535) / 255)
self.led_g.duty_u16((g * 65535) / 255)
self.led_b.duty_u16((b * 65535) / 255)