// Blink Demo für Billig-Nachbau eines Arduino Micro Pro (32u4) mit USB-C
// In der IDE wird Leonardo als Board-Typ genutzt
#define LED1 17
#define LED2 30
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pins as an output.
pinMode(LED1, OUTPUT);
pinMode(LED2, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED1, HIGH); // turn the LED on (HIGH is the voltage level)
delay(400); // wait for a second
digitalWrite(LED2, HIGH); // turn the LED on (HIGH is the voltage level)
delay(400); // wait for a second
digitalWrite(LED1, LOW); // turn the LED off by making the voltage LOW
delay(400); // wait for a second
digitalWrite(LED2, LOW); // turn the LED on (HIGH is the voltage level)
delay(400); // wait for a second
}
Comments
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎