Hello all! I have been working on a project for a while. My goal is to make a super smart switch using Blynk. I have the switch part of it (that was the easy part), but the next step is to add a display. I am using a WEMOS D1 mini lite, a relay shield, and an OLED shield.
I would link to the WEMOS D1 mini lite, but as I am a new user I can only share 2 links (also y’all probably know about this board anyway)
What I want is for the OLED screen to display “ON” when the relay is switched on and for it to display “OFF” when the display is switched off. I have gotten the OLED to display "ON or “OFF” simply by typing “ON” or “OFF” into display.println().
I have no idea how to do this and I would really appreciate some help.
Also I would be controling this from the Blynk app
Hmm. I must have not done a good explaining exactly what it was that I need help with. I would like to know how to get my OLED to display “ON” or “OFF” based on the state of the relay pin. I have messed around with my code and have managed to get the display to display what I want while I can still change the state of the relay.
Thanks for your reply! I have read through what you sent me and it was helpful, but I am still having a hard time understanding how to implement it. Any examples that you could give me that pertain specifically to what I need would be great!