mirror of
https://github.com/ashstrahle/Pi-Pico-ExpressionPedal2Midi.git
synced 2025-12-31 19:49:51 +10:00
update
This commit is contained in:
@@ -4,6 +4,8 @@ This is a Raspberry Pi Pico MicroPython project that takes an expression pedal i
|
|||||||
|
|
||||||
Midi channel, CC number, and maximum and minimum values are customisable.
|
Midi channel, CC number, and maximum and minimum values are customisable.
|
||||||
|
|
||||||
|
The expression pedal is automatically calibrated. At startup, simply move your pedal from minimum to maximum. The values are determined accordingly, and CC messages will start being sent.
|
||||||
|
|
||||||
Ashley Strahle
|
Ashley Strahle
|
||||||
|
|
||||||
https://github.com/ashstrahle
|
https://github.com/ashstrahle
|
||||||
|
|||||||
15
main.py
15
main.py
@@ -1,3 +1,18 @@
|
|||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# Pi-Pico-ExpressionPedal2Midi
|
||||||
|
#
|
||||||
|
# Connect an expression pedal to ADC0, and a midi out socket/cable to UART1.
|
||||||
|
# Set desired midi channel, change control, and maximum and minimum values
|
||||||
|
#
|
||||||
|
# Upon run/power on, move expresson pedal from maximum to minimum to calibrate
|
||||||
|
# your pedal. CC commands will immediately start sending once calibrated.
|
||||||
|
#
|
||||||
|
# Ashley Strahle
|
||||||
|
# https://github.com/ashstrahle
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from machine import ADC, Pin, UART
|
from machine import ADC, Pin, UART
|
||||||
import ustruct
|
import ustruct
|
||||||
|
|||||||
Reference in New Issue
Block a user