Recently I've bought an Arduino Nano and somewhat reason it won't accept my code!
Here is the code:
---------------------------------------------------------------------------------------------
int led = 13;
//reset
void setup() {
pinMode(led, OUTPUT);
}
int i;
int on;
int off;
int pulses;
int cycles = 5;
void loop() {
pulses = 8;
for (on = 1; on <= cycles; on++) {
for (i = 0; i < pulses; i++) {
digitalWrite(led, HIGH);
delay(on);
digitalWrite(led, LOW);
delay(cycles - on);
}
}
pulses = 8;
for (off = cycles; off > 1; off--) {
for (i = 0; i < pulses; i++) {
digitalWrite(led, HIGH);
delay(off);
digitalWrite(led, LOW);
delay(cycles - off);
}
}
digitalWrite(led, LOW);
delay(2000);
}
------------------------------------------------------------------------------------------------------------------------
And some Photos of the device. (I couldn't spot a error on the board.)