Open mcvall opened 3 years ago
did you manage to do the project? Can I contact you to clarify some doubts I have?
Hi. The project is still in progress. I make the solenoids myself, I also made the PCB. I hope to finish soon :) You can ask questions here.
Can you tell me more about your PCB?
Hi Brandon. How to set up the SUSTAIN_PIN correctly in the sketch? I created a new sustain PWM output: "pinMode (SUSTAIN_PIN, OUTPUT);" connected LED to PIN 13, but it doesn't work. In the port monitor (ESP32), I see that a midi signal comes from the Control box (Pro micro), all notes except SUSTAIN. I plugged in the midi keyboard, all notes work just as well except SUSTAIN. Thanks!
void setup () { const int SUSTAIN_PIN = 13; _pinMode (SUSTAINPIN, OUTPUT); pinMode (LED_BUILTIN, OUTPUT); Serial.begin (38400); initializeBluetooth ();
// create sustain PWM output. this can't be done by the Pro Micro because the shift registers are filled up ledcSetup (0, 100, 8); ledcAttachPin (SUSTAIN_PIN, 0); }