Files
rmaker_multi_device/examples/gpio
2025-06-03 12:27:38 +03:00
..
2025-05-02 16:38:22 +03:00
2025-05-27 11:44:44 +03:00
2025-05-26 16:54:07 +03:00
2025-04-30 16:33:57 +03:00
2025-04-30 16:33:57 +03:00
2025-04-30 16:33:57 +03:00
2025-06-03 12:27:38 +03:00
2025-04-30 16:33:57 +03:00
2025-04-30 16:33:57 +03:00
2025-04-30 16:33:57 +03:00
2025-04-30 16:33:57 +03:00
2025-04-30 16:33:57 +03:00
2025-04-30 16:33:57 +03:00

GPIO Example

This example is a modified version of the GPIO example. The modification is made according to the ESP Rainmaker Multi Device Laboratory. Briefly, 2 more devices added over the GPIO device: RGB Light and Switch.

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 just provides 3 boolean parameters, linked to 3 GPIOS.
  • Toggling the buttons on the phone app should toggle the GPIOs on your board (and the LEDs, if any, connected to the GPIOs), and also print messages like these on the ESP32-S2 monitor:
I (16073) app_main: Received value = true for GPIO-Device - Red

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.