The device is very simple. When powered it has a simple push switch that has a full-on mode – a pulse mode and off. Its sequential – so a simple push cycles you thorough these modes. So my approach was to emulate the pushes with the ESP32 and an on/off using the relay. The pu...
if(text=="/led_off"){bot.sendMessage(chat_id,"LED state set to OFF","");ledState=LOW;digitalWrite(ledPin,ledState);} Note:if you’re using an ESP8266, the built-in LED works with inverted logic. So, you should send aLOWsignal to turn the LED on and a...
2.Learn sequential structure and loop structure In Project I, we learned how to light up the UNO onboard LED light, and then we will learn how to control an external LED light.1.Learn variables and constants 2.Make an LED light that flickers at an increasing rate. ...