Hi all, i just got my first board today, its a SparkFun Pro Micro 5v which i have running on win7 x64.
I have been playing around with the example sketches that come with the arduino software and I seem to have a problem.
the onboard led seems to not behave as i would expect.
This is the code… its the basic blink sketch with tweaked delays.
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 17 has an LED connected on most Arduino boards.
// give it a name:
int led = 17;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(100);
}
led17 is on this board is apparently the same as led13 on most other boards
now as far as i can tell that should turn on the led for 1 second then quickly turn off and then back on etc…but it doesnt, its off for 1 second then quickly flashes on then off again…so its inverted.
(also everyone talks about the green led…i dont have any onboard green leds…they are all orange…is that another peculiarity of this board?)
any help would be appreciated…im wondering if my board is faulty.
cheers
VW