Back to Parent

int ledPin1 = D2;
int ledPin2 = D0;

void setup()
{
  pinMode( ledPin1 , OUTPUT ); // sets pin as output
  pinMode( ledPin2 , OUTPUT );
  digitalWrite( ledPin1, LOW);
  digitalWrite(ledPin2, LOW);
}

void loop()
{

    digitalWrite(ledPin2, HIGH);
    digitalWrite(ledPin1, HIGH);

  }
Click to Expand

Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0