Skip to content

Commit 48ba456

Browse files
authored
Update cpx-expressive-midi-controller.py
1 parent 366b0da commit 48ba456

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Circuit_Playground_Express_USB_MIDI/cpx-expressive-midi-controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
# MIDI defines middle C as 60 and modulation wheel is cc 1 by convention
5353
midi_note_C4 = 60
54-
midi_cc_modwheel = const(1)
54+
midi_cc_modwheel = 1 # was const(1)
5555

5656
# 0x19 is the i2c address of the onboard accelerometer
5757
acc_i2c = busio.I2C(board.ACCELEROMETER_SCL, board.ACCELEROMETER_SDA)
@@ -62,7 +62,7 @@
6262

6363
# brightness 1.0 saves memory by removing need for a second buffer
6464
# 10 is number of NeoPixels on CPX
65-
numpixels = const(10)
65+
numpixels = 10 # was const(10)
6666
pixels = neopixel.NeoPixel(board.NEOPIXEL, numpixels, brightness=1.0)
6767

6868
# Turn NeoPixel on to represent a note using RGB x 10

0 commit comments

Comments
 (0)