Skip to main content

ESP-IDF Basics - Assign. 1.2

·1 min·
Table of Contents

Main task
#

For this assignment, you will create a new project from the other get_started example: blink. In the blink example, you need to specify the GPIO on which the LED is connected. The default value is GPIO8 but it’s different on your board. You will need to change the configuration value through menuconfig.

  • Create the project from example as done in the previous assignment.
  • Change the example GPIO number in menuconfig:
    • Find the GPIO on which the LED is connected on your board
    • > ESP-IDF: SDK Configuration Editor (menuconfig)Example ConfigurationBlink GPIO number
  • Build, flash, and monitor the example.
  • Check that the LED is flashing. Is the output port correct? See the board schematic.
Fig.1 - Board Top View

Fig.1 - Board Top View

Bonus task
#

  • (Bonus) Change the main filename to hello_led_main.c and the project folder to hello_led. Did you encounter errors?
    • Where is the problem?

Conclusion
#

You have now a solid understanding of the project creation, building, and flashing. In the next lesson, we will focus on what usually is the main topic for an Espressif application – connectivity.

Next step
#

Next lecture → Lecture 2

Related

ESP-IDF Basics - Assign. 1.1
3 mins
ESP-IDF Basics - Assign. 2.1
7 mins
ESP-IDF Basics - Assign. 2.3 (Optional)
1 min