Simple USB-MIDI foot controller
Dependencies: PinDetect USBDevice_STM32F103 mbed-STM32F103C8T6
Diff: main.cpp
- Revision:
- 8:75c5ec68765e
- Parent:
- 7:553836a26221
- Child:
- 9:d5fa853818dd
diff -r 553836a26221 -r 75c5ec68765e main.cpp --- a/main.cpp Fri Aug 04 04:20:37 2017 +0200 +++ b/main.cpp Fri Aug 04 05:22:22 2017 +0200 @@ -12,8 +12,8 @@ /* array of SwitchConfig structs */ SwitchConfig switches[NUM_SWITCHES] = { // pin, channel, control, on_value, off_value - {PB_4, 1, 1, 127, 0}, - {PB_5, 1, 64, 64, 0}, + {PB_4, 0xB0, 1, 1, 127, 0}, + {PB_5, 0xC0, 1, 0, 1, -1}, }; @@ -70,7 +70,7 @@ #ifndef NDEBUG serial->printf("Initializing switch handler %d...\r\n", sw + 1); #endif - handlers[sw] = new SwitchHandler(&queue, &write_midi_msg, &switches[sw]); + handlers[sw] = new SwitchHandler(&queue, &write_midi_msg, switches[sw]); } #ifndef NDEBUG