Skip to main content

This site is a preview for github.com/espressif/developer-portal/pull/599

Esp32c3

Porting a library to an ESP-IDF component

Porting a library to an ESP-IDF component

This article shows how to port an external library into an ESP-IDF project by converting it into a reusable component. Using tinyexpr as an example, it covers obtaining the source code, creating a new project, building a component, configuring the build system, and testing on hardware.
ESP-IDF tutorial series: Object oriented programming in C

ESP-IDF tutorial series: Object oriented programming in C

This article explains how ESP-IDF brings object-oriented programming principles into C by using structs, opaque pointers, and handles to enforce encapsulation and modularity. It shows how components like HTTP servers and I²C buses are managed through handles that represent distinct objects for configuration and operation, and compares this approach to Python and C++.
ESP-IDF tutorial series: Errors

ESP-IDF tutorial series: Errors

This article explains error handling in FreeRTOS-based embedded systems, highlighting common C practices and their limitations. It introduces ESP-IDF’s esp_err_t type and error-checking macros, demonstrating how they help manage errors systematically. It shows practical ways to implement error handling in embedded applications.