hello_mbot_led
Dies ist eine alte Version des Dokuments!
Hello mBot LED
Quellcode (engl. Sourcecode)
Listing 1:MinimalesProgramm.ino
- int LED_RED = 4; // variable (hier für eine rote LED auf PIN 4 festlegen)
- void setup() {
- pinMode(LED_RED, OUTPUT);
- }
- void loop() {
- digitalWrite(LED_RED, HIGH); // switch on PIN
- delay(500); // wait 0.5 seconds
- digitalWrite(LED_RED, LOW); // switch off PIN
- delay(500); // wait 0.5 seconds
- }
hello_mbot_led.1738578523.txt.gz · Zuletzt geändert: 2025/02/03 10:28 von torsten.roehl