when i built this project originally, i could do updates fine. for some reason after it's sat for a month, the LC now REFUSES to be programmed. it gets 10% erased, download error. it erases, gets 40% programmed, download error. i've tried making a sketch that is literally only delay(1000); and still it just fails and gives me a download error.
nothing has changed about the hardware, except that i now have it opened up to get at the program / reset button, which is not doing anything, it just returns the loader to a picture of the board and sits there.
at this point the only way i can figure to fix this is to just throw it in the garbage and start over with teensy 2.0s; apparently saving $10 on two boards wasn't worth it, i've used dozens and dozens of 2.0s and never had this happen, ever.
WHY
HELP
teensy LC
mac os 10.12.5
arduino 1.8.9
teensy 1.46
nothing has changed about the hardware, except that i now have it opened up to get at the program / reset button, which is not doing anything, it just returns the loader to a picture of the board and sits there.
at this point the only way i can figure to fix this is to just throw it in the garbage and start over with teensy 2.0s; apparently saving $10 on two boards wasn't worth it, i've used dozens and dozens of 2.0s and never had this happen, ever.
WHY
HELP
teensy LC
mac os 10.12.5
arduino 1.8.9
teensy 1.46
Code:
int b1 = 19;
int b2 = 20;
int b3 = 21;
int b4 = 22;
int b5 = 23;
int dbd = 100; //debounce delay
int postdl = 20;
void setup() {
// Serial.begin(9600);
pinMode(b1, INPUT_PULLUP);
pinMode(b2, INPUT_PULLUP);
pinMode(b3, INPUT_PULLUP);
pinMode(b4, INPUT_PULLUP);
pinMode(b5, INPUT_PULLUP);
}
void loop() {
if (digitalRead(b1) == LOW) {
usbMIDI.sendNoteOn(1, 127, 1);
delay(dbd);
while (digitalRead(b1) == LOW) {
delay(postdl);
}
usbMIDI.sendNoteOff(1, 0, 1);
}
if (digitalRead(b2) == LOW) {
usbMIDI.sendNoteOn(2, 127, 1);
delay(dbd);
while (digitalRead(b2) == LOW) {
delay(postdl);
}
usbMIDI.sendNoteOff(2, 0, 1);
}
if (digitalRead(b3) == LOW) {
usbMIDI.sendNoteOn(3, 127, 1);
delay(dbd);
while (digitalRead(b3) == LOW) {
delay(postdl);
}
usbMIDI.sendNoteOff(3, 0, 1);
}
if (digitalRead(b4) == LOW) {
usbMIDI.sendNoteOn(4, 127, 1);
delay(dbd);
while (digitalRead(b4) == LOW) {
delay(postdl);
}
usbMIDI.sendNoteOff(4, 0, 1);
}
if (digitalRead(b5) == LOW) {
usbMIDI.sendNoteOn(5, 127, 1);
delay(dbd);
while (digitalRead(b5) == LOW) {
delay(postdl);
}
usbMIDI.sendNoteOff(5, 0, 1);
}
} // loop