Little Bird Curriculum / code littlebird.com.au
eagled-blink-3d.ino Arduino (C/C++) 10 lines · 0 views ✦ Open in English IDE Raw Download Embed view
const byte EYE_PIN = 10;
const unsigned long ON_MS = 500;
const unsigned long OFF_MS = 500;
void setup() { pinMode(EYE_PIN, OUTPUT); }
void loop() {
  digitalWrite(EYE_PIN, HIGH);
  delay(ON_MS);
  digitalWrite(EYE_PIN, LOW);
  delay(OFF_MS);
}

Embed this snippet

As an iframe:

Or drop it inline with a script tag (injects the highlighted block where included):

Shared from Little Bird Electronics curriculum.

Copied to clipboard