Skip to content

Instantly share code, notes, and snippets.

@podstawek
Last active April 4, 2022 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save podstawek/7216cb782a544da35429735e38cea737 to your computer and use it in GitHub Desktop.
Save podstawek/7216cb782a544da35429735e38cea737 to your computer and use it in GitHub Desktop.
Resistor ladder control (fragment only)
void loop() {
digitalWrite(D0, LOW);
digitalWrite(D1, LOW);
digitalWrite(D2, LOW);
delay(2);
digitalWrite(D0, LOW);
digitalWrite(D1, LOW);
digitalWrite(D2, HIGH);
delay(2);
; (...end so on...)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment