![]() That makes up the main chunk of the loop() function. To detect a “hold” we are looking for LOW to LOW. To detect the button being pressed, we are looking for a HIGH to LOW transition (the button is active low in INPUT_PULLUP mode remember). ![]() I change the program number internally while the button is pressed, but only send an actual program change message over MIDI when the button is released. I chose to implement this by separating out the three conditions:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |