Button Controlling LED using STM32 -NUCLEO

Aim

 The goal of the activity is to connect an LED and a button to an STM32 -NUCLEO board. The LED must be switched on or switched off, using the button

Materials Required

  1. STM32 -NUCLEO -1    
  2. Breadboard – 1
  3. LED -1
  4. Push button-1
  5. Several Jumper Wires   
  6. 220Ω Resistors – 2
  7. Mini USB Cable-1  

Wiring Diagram

Desired Outcome

 The LED will switch on and it will gradually brighten to a high and slowly fade to a low.