Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Macropad_Ableton/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

# ---Display setup---
display = board.DISPLAY
screen = displayio.Group(max_size=12)
screen = displayio.Group()
display.show(screen)
WIDTH = 128
HEIGHT = 64
Expand Down Expand Up @@ -120,7 +120,7 @@
for data in label_data:
text, x, y = data
label_area = label.Label(FONT, text=text, color=0xffffff)
group = displayio.Group(max_size=4, x=x, y=y)
group = displayio.Group(x=x, y=y)
group.append(label_area)
screen.append(group)
labels.append(label_area) # these are individually addressed later
Expand Down Expand Up @@ -193,7 +193,7 @@
if not key_event: # Event is None; no keypad event happened, do other stuff

position = macropad.encoder # store encoder position state
cc_position = constrain((position + CC_OFFSET), 0, 127) # lock to cc range
cc_position = int(constrain((position + CC_OFFSET), 0, 127)) # lock to cc range
if last_position is None or position != last_position:

if position < last_position:
Expand Down