Change the state of a toggle with a button ESP32

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
DoaFx
 
Posts: 1
Joined: Wed Sep 15, 2021 5:39 pm

Change the state of a toggle with a button ESP32

Post by DoaFx »

I'm doing a school project, which turns on the lights using voice command by alexa, and we used Adafruit IO for that and it worked.
But to finish the project I'm trying to make a push button connected to an ESP32 port, modify the toggle state previously activated by voice command.
How can I do this?

The code I used is on GitHub: https://github.com/DoaFx/Adafruit-LED-Code-WIFI


(I used Google translator)

User avatar
brubell
Learn User Page
 
Posts: 2010
Joined: Fri Jul 17, 2015 10:33 pm

Re: Change the state of a toggle with a button ESP32

Post by brubell »

But to finish the project I'm trying to make a push button connected to an ESP32 port, modify the toggle state previously activated by voice command.
You'd want the push button to write to the same feed that the voice command writes to.

We have a guide for reference on how to do this here: https://learn.adafruit.com/adafruit-io- ... ital-input

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”