Difference between revisions of "EBroidery-Blink-All"

From Digipool-Wiki
Jump to: navigation, search
(Created page with "<pre> // eBroidery Blink All int ledPin = 13; // on board int led1 = 2; int led2 = 4; // ... int led11 = 12; void setup() { pinMode(ledPin, OUTPUT); pinMode(led1, OUTPUT...")
(No difference)

Revision as of 11:35, 13 June 2019


// eBroidery Blink All
int ledPin = 13; // on board
int led1 = 2;
int led2 = 4;
// ...
int led11 = 12;

void setup() {
  pinMode(ledPin, OUTPUT);
  pinMode(led1, OUTPUT);
  pinMode(led2, OUTPUT);
  // ...
  pinMode(led12, OUTPUT);
}

void loop() {
  digitalWrite(ledPin, HIGH); // Led an
  digitalWrite(led1, LOW); // Led an
  digitalWrite(led2, LOW); // Led an
  // ...
  digitalWrite(led12, LOW); // Led an
  delay(1000); // Led an Zeit

  digitalWrite(ledPin, LOW);
  digitalWrite(led1, HIGH); // Led aus
  digitalWrite(led2, HIGH); // Led aus
  // ...led3, led4 ... led12 (led14, led15 ... led19)
  digitalWrite(led12, HIGH); // Led aus
  delay(1000); // Led aus Zeit
}