From 6116c6cd56a61a449d44f6cdcfca0abe541b2804 Mon Sep 17 00:00:00 2001 From: Ashley Strahle Date: Sun, 31 Jan 2021 01:14:27 +1000 Subject: [PATCH] update --- README.md | 2 ++ main.py | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/README.md b/README.md index 5412c8c..5c6a762 100644 --- a/README.md +++ b/README.md @@ -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. +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 https://github.com/ashstrahle diff --git a/main.py b/main.py index fb4fb19..78e7ab7 100644 --- a/main.py +++ b/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 from machine import ADC, Pin, UART import ustruct