@Valen: Thank you for taking the time to reply. The whole program that I uploaded, that now exhibits the flashing D13 led, is:
Code: Select allint greenValue = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.write(analogRead(3));
if (Serial.available() > 0) {
int data = Serial.read();
Serial.println("Received: ");
Serial.println(data, DEC);
}
analogWrite(greenValue, 10); // Bad line here!
greenValue++;
if (greenValue >= 255) {
greenValue = 0;
}
}
void serialEvent() {
Serial.println("event!");
}
After uploading this program, the D13 light on the Sandbox blinks rapidly, and I can no longer upload any programs to it. The Arduino IDE shows:
Code: Select allSketch uses 3,108 bytes (10%) of program storage space. Maximum is 30,720 bytes.
Global variables use 220 bytes (10%) of dynamic memory, leaving 1,828 bytes for local variables. Maximum is 2,048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
I have no problems uploading to my other Sandboxes - of course, I fixed the mistake in the program before anything else.
My main issue is just that I can't upload a new program to the board that I deployed my erroneous program to.