File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7474
7575# ---Display setup---
7676display = board .DISPLAY
77- screen = displayio .Group (max_size = 12 )
77+ screen = displayio .Group ()
7878display .show (screen )
7979WIDTH = 128
8080HEIGHT = 64
120120for data in label_data :
121121 text , x , y = data
122122 label_area = label .Label (FONT , text = text , color = 0xffffff )
123- group = displayio .Group (max_size = 4 , x = x , y = y )
123+ group = displayio .Group (x = x , y = y )
124124 group .append (label_area )
125125 screen .append (group )
126126 labels .append (label_area ) # these are individually addressed later
193193 if not key_event : # Event is None; no keypad event happened, do other stuff
194194
195195 position = macropad .encoder # store encoder position state
196- cc_position = constrain ((position + CC_OFFSET ), 0 , 127 ) # lock to cc range
196+ cc_position = int ( constrain ((position + CC_OFFSET ), 0 , 127 ) ) # lock to cc range
197197 if last_position is None or position != last_position :
198198
199199 if position < last_position :
You can’t perform that action at this time.
0 commit comments