This commit is contained in:
2021-01-31 01:14:27 +10:00
parent d2bd42e251
commit 6116c6cd56
2 changed files with 17 additions and 0 deletions

View File

@@ -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
View File

@@ -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