Benutzer-Werkzeuge

Webseiten-Werkzeuge


knowledgebase:arduinoide

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Letzte Überarbeitung Beide Seiten der Revision
knowledgebase:arduinoide [2017/11/29 14:59]
rolex
knowledgebase:arduinoide [2017/12/12 11:57]
rolex
Zeile 13: Zeile 13:
 | while(statement){expression} | Keep doing expression while statement is true | | while(statement){expression} | Keep doing expression while statement is true |
 | do{statement}while(expression); | Like while loop, except expression is evaluated after statement runs once | | do{statement}while(expression); | Like while loop, except expression is evaluated after statement runs once |
-| switch (var) {case 1: statement break; case 2: statement break; default: statement C break} | Run statement A, B or depending on whether var is 1or a different value |+| switch(var){case X: statement break; case Y: statement  break;} | Run statement or depending on whether var is Xor a different value |
 | break; | Exit a for, while, do while loop or switch statement | | break; | Exit a for, while, do while loop or switch statement |
 | continue; | Skip rest of current iteration of for, while, or do while loop, start next iteration | | continue; | Skip rest of current iteration of for, while, or do while loop, start next iteration |
 | return value; | Terminate the function and optionally return value to the function that called it | | return value; | Terminate the function and optionally return value to the function that called it |
-| goto label; | Send the program flow to `label:` |+| goto label; |Send the program flow to `label:` |
  
 == Comparison Operators == == Comparison Operators ==
Zeile 24: Zeile 24:
 | < | Less than | | < | Less than |
 | > |Greater than | | > |Greater than |
-| <= | Less than or equal to |+<nowiki> <= </nowiki> | Less than or equal to |
 | >= | Greater than or equal to | | >= | Greater than or equal to |
  
 == Boolean Operators == == Boolean Operators ==
 | && | And | | && | And |
 +| <nowiki> || </nowiki> | Or |
 | ! | Not | | ! | Not |
  
 == Bitwise Operators == == Bitwise Operators ==
 | & | And | | & | And |
 +| <nowiki> | </nowiki> | Or |
 | ~ | Not | | ~ | Not |
 | << | Bitshift left | | << | Bitshift left |
Zeile 75: Zeile 77:
 | delay(n) | Pause program for n milliseconds | | delay(n) | Pause program for n milliseconds |
 | delayMicroseconds(n) | Pause program for n microseconds | | delayMicroseconds(n) | Pause program for n microseconds |
 +
 +\\
 +\\
 +mehr auf [[https://www.arduino.cc/reference/en/ | Arduino Reference ]] oder in unseren Arduino Workshops
knowledgebase/arduinoide.txt · Zuletzt geändert: 2017/12/19 11:38 von rolex