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/26 16:20] – [Arduino-Workshop] julia | 22_11_21 [2021/11/26 16:33] – [Arduino-Workshop] julia | ||
---|---|---|---|
Line 16: | Line 16: | ||
void setup: | void setup: | ||
- | // initialize digital pin LED_BUILTIN as an output. | ||
pinMode(LED_BUILTIN, | pinMode(LED_BUILTIN, | ||
void loop: | void loop: | ||
Line 25: | Line 24: | ||
{{: | {{: | ||
+ | |||
+ | Für zwei LEDs wird dieser Code verwendet: | ||
+ | |||
+ | void setup: | ||
+ | | ||
+ | '' | ||
+ | |||
+ | | ||
+ | '' | ||
+ | |||
+ | void loop: | ||
+ | |||
+ | digitalWrite(13, | ||
+ | digitalWrite(12, | ||
+ | delay(1000); | ||
+ | digitalWrite(12, | ||
+ | digitalWrite(13, | ||
+ | delay(1000); | ||
+ | |||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
{{: | {{: |