I've massaged your code so that it can read a PGM header file. I could only test with an example PGM that was way too big to fit in a teensy, so I can't guarantee that it'll read the image itself correctly.
// Read a...
Many years ago, I had a Java crash whenever I opened a fairly large project and tracked it down to an unterminated comment. Maybe that's now been fixed but keep it in mind if all else fails ;)
Pete
Hi Kenneth.
Yes, it's Hauptwerk V4 (I can't justify upgrading to V7 since I play badly and infrequently).
I only use two buttons on the T3.6 and I wrote my own software sequencer since I don't have a pedal board.
I...
I use a T3.6 for the MIDI interface between two keyboards and VPO. I added code to print some info periodically to the serial monitor and compiled it with "Serial+MIDI". The output doesn't interfere with the VPO.
Pete
This sequence of code will wait for the rising edge on pin 8.
// If the pin is already HIGH
if(digitalRead(8)) {
// wait for it to go lOW
while(digitalRead(8) == 1);
}
// The pin is now LOW, wait...