int ledPin = 10;
how can i add another pin to this code?
pls help.
Yours Sincerely,
Wild_Gamer_27
int ledPin = 10;
how can i add another pin to this code?
pls help.
Yours Sincerely,
Wild_Gamer_27
Which code?
int pin1 = 10;
void setup()
{
pinMode(pin1, OUTPUT);
}
void loop()
{
digitalWrite(pin1, HIGH);
delay(500);
digitalWrite(pin1, LOW);
delay(500);
}
Code in code tags
int pin1 = 10;
int pin2 = 100;
void setup()
{
pinMode(pin1, OUTPUT);
pinMode(pin2, OUTPUT);
}
void loop()
{
digitalWrite(pin1, HIGH);
digitalWrite(pin2, HIGH);
delay(500);
digitalWrite(pin1, LOW);
digitalWrite(pin2, LOW);
delay(500);
}
thanks so much!
int pin2 = 100;
That did not work?
Seems high
for shure 100 is an INT.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.