I just loaded this sketch and connected a potentiometer to digital input 0 and it worked so now I am thinking the digital outs are fried?
The circuit:
potentiometer connected to analog pin 0.
Center pin of the potentiometer goes to the analog pin.
side pins of the potentiometer go to +5V and ground
created over and over again
by Tom Igoe and everyone who's ever used Arduino
*/
void setup() {
Serial.begin(9600);
}
void loop() {
// read the analog input into a variable:
int analogValue = analogRead(0);
// print the result:
Serial.println(analogValue);
// wait 10 milliseconds for the analog-to-digital converter
// to settle after the last reading:
delay(10);
}
no dice... nothing with the built-in LEd or one plugged in.
Big Edit:
Alright, so i tried your code with all the different digital outputs... good news is they pretty much all seem to be working with the exception of digital outs 8.9 and 13...
for DI 13, the program loads fine but does nothing...
For DIs 8 & 9, when I got to upload the sketch it returns this error:
error: invalid digit "8" in octal constan
either way, the outputs seems to all be working except for 13, which is kinda funny since that's the one that is supposed to be used for testing... I am not too concerned at this point, I guess they just needed to be "kicked on" somehow and that must have happened..
now i need to get my stepper turning instead of just vibrating like crazy!