You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+15-5
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,15 @@
1
-
# ESP32IDFDimmer
1
+
# ESP32 Triac Dimmer Driver
2
2
3
-
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.
3
+
This library provides an API to control dimmer devices using ESP-IDF 5.x.
4
+
**For ESP-IDF 4.x projects, please use the v1.0.0 release of this library.**
5
+
It supports both toggle and normal modes, and allows you to set the power levels of the dimmer.
4
6
5
7
### Prerequisites
6
-
- ESP32 board with ESP-IDF v4.1 or higher
7
-
- A dimmable AC load
8
+
- ESP32 board with ESP-IDF v5.0 or higher
9
+
- A dimmable AC load
8
10
9
11
### Installation
10
-
Clone the project from the repository and add the library to your project.
12
+
Clone the component into your project components directory.
11
13
12
14
### Usage
13
15
1. Include the library header in your program
@@ -61,6 +63,14 @@ The library provides the following API methods:
This library has been migrated to ESP-IDF 5.x and is no longer compatible with previous versions.
68
+
It has also been transformed into an ESP-IDF component for easier integration.
69
+
70
+
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.
71
+
72
+
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.
73
+
64
74
## Contributing
65
75
66
76
We welcome contributions to this library. Please open a pull request or an issue to get started.
0 commit comments