Notifications

Day 5: The Trial of Lights and Buttons

Objective:


  1. Apply knowledge of using buttons and LEDs in a circuit.
  2. Connect multiple buttons and LEDs to the HERO board and breadboard.
  3. Write and upload code to control LEDs based on button presses without given code.
  4. Demonstrate understanding of coding and circuit design through an independent challenge.


Components needed:


  1. HERO board
  2. USB cable
  3. Breadboard
  4. 2 LEDs
  5. 2 Buttons
  6. Resistors (220 ohm and 10k ohm)
  7. Jumper wires (Male to Male)


Wiring Diagram:



Code: