DD3AH icon

Leonardo 32u4 double blink

DD3AH | PRO | 03/14/26 01:05:36 PM UTC (Edited) | 0 ⭐ | 11474 👁️ | Never ⏰ | []
Arduino |

940 B

|

None

|

0 👍

/

0 👎

// 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

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎