File tree Expand file tree Collapse file tree
MagTag_Google_Sheets/naughty_nice
Make_It_Sense/cpx-ir-decode Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7474 c = color .pack ()
7575 pixels [0 ] = c
7676 pixels .show ()
77- if color_index == 0 or color_index == 28 :
77+ if color_index in ( 0 , 28 ) :
7878 fade_direction *= - 1 # Change direction
7979 color_index += fade_direction
8080
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ def hh_mm(time_struct, twelve_hour=True):
105105 # though they still must have a "Naughty" or "Nice" heading at top.
106106 for entry in ENTRIES :
107107 cell = entry ['gs$cell' ]
108- if int (cell ['row' ]) is 1 : # Only look at top row
108+ if int (cell ['row' ]) == 1 : # Only look at top row
109109 head = cell ['$t' ].lower () # Case-insensitive compare
110110 if ((NICE and head == 'nice' ) or (not NICE and head == 'naughty' )):
111111 NAME_COLUMN = int (cell ['col' ])
Original file line number Diff line number Diff line change 9696 pixels [9 ] = (0 , 30 , 0 )
9797 elif command == 207 :
9898 pixels [0 ] = (0 , 30 , 0 )
99- elif command == 111 or command == 143 :
99+ elif command in ( 111 , 143 ) :
100100 pixels .fill ((0 , 0 , 0 )) # clear on enter or back key
You can’t perform that action at this time.
0 commit comments