Skip to content

Commit cc6336c

Browse files
authored
Merge pull request #1660 from lesamouraipourpre/ableton
Macropad Ableton: Update for CP7
2 parents 2df857c + bd92488 commit cc6336c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Macropad_Ableton/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575
# ---Display setup---
7676
display = board.DISPLAY
77-
screen = displayio.Group(max_size=12)
77+
screen = displayio.Group()
7878
display.show(screen)
7979
WIDTH = 128
8080
HEIGHT = 64
@@ -120,7 +120,7 @@
120120
for 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
@@ -193,7 +193,7 @@
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:

0 commit comments

Comments
 (0)