You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
// 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);
}
The text was updated successfully, but these errors were encountered:
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 (SUSTAIN_PIN, 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);
}
The text was updated successfully, but these errors were encountered: