ESP-Nodes/ESP32-Rainmaker-Switch
Alexandre B c08e2c2daf
Some checks are pending
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Waiting to run
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Blocked by required conditions
.
2024-08-12 01:28:05 -04:00
..
.devcontainer ESP32-Rainmaker-Matter_Switch 2024-07-16 20:50:57 -04:00
.vscode . 2024-08-11 23:36:46 -04:00
build . 2024-08-12 01:28:05 -04:00
main ADC ambient light sensor value read & display 2024-08-12 01:18:18 -04:00
managed_components . 2024-07-16 21:11:16 -04:00
CMakeLists.txt Firmware 2.6.2 2024-08-12 01:27:50 -04:00
dependencies.lock ESP32C3 LuatOS 2024-08-10 14:31:22 -04:00
Makefile . 2024-07-16 21:11:16 -04:00
partitions_4mb_optimised.csv . 2024-07-16 21:11:16 -04:00
partitions.csv . 2024-07-16 21:11:16 -04:00
README.md . 2024-07-16 21:11:16 -04:00
sdkconfig . 2024-08-11 12:10:11 -04:00
sdkconfig.defaults . 2024-07-16 21:11:16 -04:00
sdkconfig.defaults.esp32 . 2024-07-16 21:11:16 -04:00
sdkconfig.defaults.esp32c6 ESP32-Rainmaker-Matter_Switch 2024-07-16 20:50:57 -04:00
sdkconfig.old . 2024-08-10 16:47:56 -04:00

Switch Example

Build and Flash firmware

Follow the ESP RainMaker Documentation Get Started section to build and flash this firmware. Just note the path of this example.

What to expect in this example?

  • This example uses the BOOT button and RGB LED on the ESP32-S2-Saola-1/ESP32-C3-DevKitC board to demonstrate a switch.
  • The LED state (green color) indicates the state of the switch.
  • Pressing the BOOT button will toggle the state of the switch and hence the LED. This will also reflect on the phone app.
  • Toggling the button on the phone app should toggle the LED on your board, and also print messages like these on the ESP32-S2 monitor:
I (16073) app_main: Received value = true for Switch - power

LED not working?

The ESP32-S2-Saola-1 board has the RGB LED connected to GPIO 18. However, a few earlier boards may have it on GPIO 17. Please use CONFIG_WS2812_LED_GPIO to set the appropriate value.

Reset to Factory

Press and hold the BOOT button for more than 3 seconds to reset the board to factory defaults. You will have to provision the board again to use it.