So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By vrata48
#88258 Hello, newbie question here.

I'm trying the simplest program with LED connected to D1 (or D2) but it does not work on these two pins (LED does not emit). I know these are supposed to be I2C pins but from what I read it should be possible to use them like that as well.

It actually works only when connected to D6/D5. No luck with other pins as well.

int led = D1;

void setup() {
pinMode(led, OUTPUT);
}

void loop() {
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
}