22_11_21
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
22_11_21 [2021/11/25 13:22] – [Arduino-Workshop] julia | 22_11_21 [2021/11/26 16:30] – [Arduino-Workshop] julia | ||
---|---|---|---|
Line 12: | Line 12: | ||
{{: | {{: | ||
+ | |||
+ | Für eine LED wird das Blink-Beispiel verwendet. Der Code dafür sieht wie folgt aus: | ||
+ | |||
+ | void setup: | ||
+ | '' | ||
+ | void loop: | ||
+ | '' | ||
+ | delay(1000); | ||
+ | digitalWrite(LED_BUILTIN, | ||
+ | delay(1000); | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Für zwei LEDs wird dieser Code verwendet: | ||
+ | |||
+ | void setup: | ||
+ | | ||
+ | '' | ||
+ | |||
+ | | ||
+ | '' | ||
+ | |||
+ | void loop: | ||
+ | |||
+ | '' | ||
+ | digitalWrite(12, | ||
+ | |||
+ | delay(1000); | ||
+ | |||
+ | digitalWrite(12, | ||
+ | digitalWrite(13, | ||
+ | |||
+ | delay(1000);'' | ||
+ | |||
+ | {{: |