Arduino 4 - dve LED sa striedajú

From DT^2
Revision as of 11:26, 29 July 2019 by Palo (talk | contribs) (Created page with "<syntaxhighlight lang="C++"> void setup() { pinMode(13, OUTPUT); pinMode(12, OUTPUT); } void loop() { digitalWrite(13, HIGH); digitalWrite(12, LOW); delay(4000);...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
void setup() {
  pinMode(13, OUTPUT);
  pinMode(12, OUTPUT);
}

void loop() {
  digitalWrite(13, HIGH);
  digitalWrite(12, LOW);
  delay(4000);
  digitalWrite(13, LOW);
  digitalWrite(12, HIGH);
  delay(4000);
}