please can you give me the code to control an ilumination of a led ![]()
starter ... connect switch to pin 10 and LED to 13 (add resistor 220 ohm)
void setup()
{
 pinMode(10, INPUT);
 pinMode(13, OUTPUT);
}
void loop()
{
 digitalWrite(13, digitalRead(10);
}
go to examples/basic/blink in the Arduino programming environment...that's what it's there for
digitalWrite(13, digitalRead(10);
Close...but no cigar.