mirror of
https://github.com/pmarchini/Esp32Dimmer.git
synced 2025-10-30 10:54:02 +03:00
feat: porting to component migrating from esp-idf 4.4 to 5.x
This commit is contained in:
19
README.md
19
README.md
@@ -1,13 +1,14 @@
|
||||
# ESP32IDFDimmer
|
||||
# ESP32 Triac Dimmer Driver
|
||||
|
||||
This library provides an API to control dimmer devices using the ESP32IDF. It supports both toggle and normal modes, and allows you to set the power levels of the dimmer.
|
||||
This library provides an API to control dimmer devices using ESP-IDF 5.x.
|
||||
It supports both toggle and normal modes, and allows you to set the power levels of the dimmer.
|
||||
|
||||
### Prerequisites
|
||||
- ESP32 board with ESP-IDF v4.1 or higher
|
||||
- A dimmable AC load
|
||||
- ESP32 board with ESP-IDF v5.0 or higher
|
||||
- A dimmable AC load
|
||||
|
||||
### Installation
|
||||
Clone the project from the repository and add the library to your project.
|
||||
Clone the component into your project components directory.
|
||||
|
||||
### Usage
|
||||
1. Include the library header in your program
|
||||
@@ -61,6 +62,14 @@ The library provides the following API methods:
|
||||
|
||||

|
||||
|
||||
## Migrated to ESP-IDF 5.x and Component
|
||||
This library has been migrated to ESP-IDF 5.x and is no longer compatible with previous versions.
|
||||
It has also been transformed into an ESP-IDF component for easier integration.
|
||||
|
||||
To use the basic example, add the component to your project's components directory and replace the main file with the code from examples/base/main.c.
|
||||
|
||||
If you are using the library in a project that is not using ESP-IDF 5.x, you can still use the old version of the library (v1.0.0) which is compatible with ESP-IDF 4.x.
|
||||
|
||||
## Contributing
|
||||
|
||||
We welcome contributions to this library. Please open a pull request or an issue to get started.
|
||||
|
||||
Reference in New Issue
Block a user