Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. A function for configuring the GPIO pins of the ESP32 microcontroller 

  2. A function for reading the voltage level of a GPIO pin 

  3. A function for setting the voltage level of a GPIO pin 

 

References that you will need to complete this task: 

  1. Circuit Schematic 

  2. Esp32-wroom-32e data sheet 

  3. ESP-IDF Programming Guide 

  4. ESP-IDF examples

 

Suggested steps

...

/hints 

  1. Look at the schematic to know pin mappings, and assign pin mappings to the GPIOs 

  2. Look at the programming guide to learn the API for accessing

...

  1. the GPIO ports. Using the gpio_config function is not recommended as it is harder to get right.

  2. gpio_num_t can be referenced via GPIO_NUM_XX where XX is the GPIO number you got in step 1.

Test Criteria

  • Ensure you can toggle both On LED and Spedometer

  • Ensure you can read whether Accelerate, Brake, and Direction are being pressed down.

 

Make sure you put your code in the function that has been labeled for this part. Ignore all of the other parts of the code for now, as those are concepts that we will go over later in Launchpad. For this part and the rest of Launchpad, you must demonstrate the proper functioning of your program in order for you to move on to the next part.