diff --git a/devtimer.py b/devtimer.py index 3596795..29a4830 100755 --- a/devtimer.py +++ b/devtimer.py @@ -11,8 +11,6 @@ from tm1637 import * from wiringpi import wiringPiSetupGpio -wiringPiSetupGpio() - ##### # Constants ##### @@ -49,8 +47,10 @@ WARNING: It takes about 250ms to update the display on a Pi Zero. So, if the "virtual second" falls at or below this, the code will be attempting to do updates faster than the - display can handle. So the total amount of compensation - cannot be smaller than about 0.300 to be on the safe side. + display can handle. So ... the total compensation cannot + reduce the virtual second to less than about 0.300 to be on + the safe side. + ''' compensate = ( @@ -96,6 +96,7 @@ if __name__ == "__main__": + wiringPiSetupGpio() display0 = TM1637(CLK, DIO, BRIGHTNESS) compensation_profile = 0