Answers for "arduino if-else"

3

arduino if-else

if (condition1) {
  // Tue Task 1
}
else if (condition2) {
  // Tue Task 2
}
else {
  // Tue Task 3
}
Posted by: Guest on January-04-2021
1

if arduino

if (x > 120) {
  digitalWrite(LEDpin, HIGH);
}

if (x > 120) {
  digitalWrite(LEDpin, HIGH);
}

if (x > 120) {
  digitalWrite(LEDpin, HIGH);
}

if (x > 120) {
  digitalWrite(LEDpin1, HIGH);
  digitalWrite(LEDpin2, HIGH);
}
// Alle Anweisungen sind korrekt
Posted by: Guest on January-03-2021

Browse Popular Code Answers by Language