|
|
@@ -12,7 +12,7 @@ Before project configuration and build, be sure to set the correct chip target u
|
|
|
|
|
|
### Hardware Required
|
|
|
|
|
|
-* A development board with ESP32/ESP32-S2/ESP32-C3 SoC (e.g., ESP32-DevKitC, ESP-WROVER-KIT, etc.)
|
|
|
+* A development board with ESP32/ESP32-S2/ESP32-S3/ESP32-C3 SoC (e.g., ESP32-DevKitC, ESP-WROVER-KIT, etc.)
|
|
|
* A USB cable for Power supply and programming
|
|
|
|
|
|
Some development boards use an addressable LED instead of a regular one. These development boards include:
|
|
|
@@ -23,6 +23,7 @@ Some development boards use an addressable LED instead of a regular one. These d
|
|
|
| ESP32-C3-DevKitM-1 | Addressable | GPIO8 |
|
|
|
| ESP32-S2-DevKitM-1 | Addressable | GPIO18 |
|
|
|
| ESP32-S2-Saola-1 | Addressable | GPIO18 |
|
|
|
+| ESP32-S3-Addax-1 | Addressable | GPIO47 |
|
|
|
|
|
|
See [Development Boards](https://www.espressif.com/en/products/devkits) for more information about it.
|
|
|
|
|
|
@@ -33,13 +34,12 @@ Open the project configuration menu (`idf.py menuconfig`).
|
|
|
In the `Example Configuration` menu:
|
|
|
|
|
|
* Select the LED type in the `Blink LED type` option.
|
|
|
- * * Use `GPIO` for regular LED blink.
|
|
|
- * * Use `RMT` for addressable LED blink.
|
|
|
- * * * Use `RMT Channel` to select the RMT peripheral channel.
|
|
|
+ * Use `GPIO` for regular LED blink.
|
|
|
+ * Use `RMT` for addressable LED blink.
|
|
|
+ * Use `RMT Channel` to select the RMT peripheral channel.
|
|
|
* Set the GPIO number used for the signal in the `Blink GPIO number` option.
|
|
|
* Set the blinking period in the `Blink period in ms` option.
|
|
|
|
|
|
-
|
|
|
### Build and Flash
|
|
|
|
|
|
Run `idf.py -p PORT flash monitor` to build, flash and monitor the project.
|
|
|
@@ -52,6 +52,19 @@ See the [Getting Started Guide](https://docs.espressif.com/projects/esp-idf/en/l
|
|
|
|
|
|
As you run the example, you will see the LED blinking, according to the previously defined period. For the addressable LED, you can also change the LED color by setting the `pStrip_a->set_pixel(pStrip_a, 0, 16, 16, 16);` (LED Strip, Pixel Number, Red, Green, Blue) with values from 0 to 255 in the `blink.c` file.
|
|
|
|
|
|
+```
|
|
|
+I (315) example: Example configured to blink addressable LED!
|
|
|
+I (325) example: Turning the LED OFF!
|
|
|
+I (1325) example: Turning the LED ON!
|
|
|
+I (2325) example: Turning the LED OFF!
|
|
|
+I (3325) example: Turning the LED ON!
|
|
|
+I (4325) example: Turning the LED OFF!
|
|
|
+I (5325) example: Turning the LED ON!
|
|
|
+I (6325) example: Turning the LED OFF!
|
|
|
+I (7325) example: Turning the LED ON!
|
|
|
+I (8325) example: Turning the LED OFF!
|
|
|
+```
|
|
|
+
|
|
|
Note: The color order could be different according to the LED model.
|
|
|
|
|
|
The pixel number indicates the pixel position in the LED strip. For a single LED, use 0.
|
|
|
@@ -60,4 +73,4 @@ The pixel number indicates the pixel position in the LED strip. For a single LED
|
|
|
|
|
|
* If the LED isn't blinking, check the GPIO or the LED type selection in the `Example Configuration` menu.
|
|
|
|
|
|
-For any technical queries, please open an [issue] (https://github.com/espressif/esp-idf/issues) on GitHub. We will get back to you soon.
|
|
|
+For any technical queries, please open an [issue](https://github.com/espressif/esp-idf/issues) on GitHub. We will get back to you soon.
|