mirror of
https://github.com/antirez/uc8151_micropython.git
synced 2025-12-06 06:12:49 +08:00
Floating point speed.
This commit is contained in:
@@ -413,8 +413,8 @@ class UC8151:
|
||||
hperiod = period//2 # Num. of frames for back-and-forth change.
|
||||
|
||||
# Actual period is scaled by the speed factor
|
||||
period = max(period >> (self.speed-1), 1)
|
||||
hperiod = max(hperiod >> (self.speed-1), 1)
|
||||
period = int(max(period / (2**(self.speed-1)), 1))
|
||||
hperiod = int(max(hperiod / (2**(self.speed-1)), 1))
|
||||
|
||||
# Setup three (or two) steps.
|
||||
# For all the steps, VCOM is just taken at VCOM_DC,
|
||||
|
||||
Reference in New Issue
Block a user