Wemos D1 with Wemos OLED shield and buttons.
Moderators: grovkillen, Stuntteam, TD-er
Wemos D1 with Wemos OLED shield and buttons.
I am trying to figure out how to use the buttons on the side of the display shield. I would like to either send and MQTT command with a button press or use one button to wake up the display on a nightstand sensor. Maybe even 1 button to turn wake the display and the other to set the screen contrast now that it is working in the dev branch.
Any ideas??? Hate to have 2 buttons that are not doing anything!
Thanks Matt
Any ideas??? Hate to have 2 buttons that are not doing anything!
Thanks Matt
Re: Wemos D1 with Wemos OLED shield and buttons.
Nice to see people are already using the contrast feature
The Oled Framed plugin does support some button. But I guess I could add a command to set the contrast (temporary, without storing it to flash).
Then you can call it from rules.
Are these buttons connected to some GPIO pins?
The you can use the switch plugin on them.
The Oled Framed plugin does support some button. But I guess I could add a command to set the contrast (temporary, without storing it to flash).
Then you can call it from rules.
Are these buttons connected to some GPIO pins?
The you can use the switch plugin on them.
-
- Normal user
- Posts: 307
- Joined: 06 Nov 2016, 13:45
Re: Wemos D1 with Wemos OLED shield and buttons.
If you look here
https://wiki.wemos.cc/products:d1_mini_ ... led_shield
this document
https://wiki.wemos.cc/_media/products:d ... v2.0.0.pdf
Shows Key1 is default connected to D3 (GPIO0)
Key2 is default connected to D4 (GPIO2)
with the option to solder other connections (SJ3-SJ6 and SJ7,SJ9-SJ11)
https://wiki.wemos.cc/products:d1_mini_ ... led_shield
this document
https://wiki.wemos.cc/_media/products:d ... v2.0.0.pdf
Shows Key1 is default connected to D3 (GPIO0)
Key2 is default connected to D4 (GPIO2)
with the option to solder other connections (SJ3-SJ6 and SJ7,SJ9-SJ11)
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.
Re: Wemos D1 with Wemos OLED shield and buttons.
They can be attached to about any GPIO via a solder bridge! That would be so cool if you could do that. If it controls the contrast then it could control the on or off state of the display.
Relevant section of the board schematics:
Relevant section of the board schematics:
- Attachments
-
- GPIO-display.jpg (13.81 KiB) Viewed 7363 times
Re: Wemos D1 with Wemos OLED shield and buttons.
How would one tie a gpio to contrast control on the led?
Re: Wemos D1 with Wemos OLED shield and buttons.
That should have read, how would one tie gpio state changes to OLED contrast control?
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Wemos D1 with Wemos OLED shield and buttons.
I would use a switch device per button and then use rules together with a dummy device to make the button control stuff.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Wemos D1 with Wemos OLED shield and buttons.
Does that mean that the rules have access to control OLED contrast?
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Wemos D1 with Wemos OLED shield and buttons.
No, you're right. The contrast is not yet a command. Please open a issue on GitHub and we'll see what we can do.
Only "On", "Off" and "Clear" are being obeyed when calling this command: "OLEDFRAMEDCMD"
Only "On", "Off" and "Clear" are being obeyed when calling this command: "OLEDFRAMEDCMD"
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Wemos D1 with Wemos OLED shield and buttons.
Any suggestions on syntax for such commands?grovkillen wrote: ↑09 Feb 2018, 23:02 No, you're right. The contrast is not yet a command. Please open a issue on GitHub and we'll see what we can do.
Only "On", "Off" and "Clear" are being obeyed when calling this command: "OLEDFRAMEDCMD"
Please note them here: https://github.com/letscontrolit/ESPEasy/issues/839
Re: Wemos D1 with Wemos OLED shield and buttons.
Added comment to the Git thread.
Who is online
Users browsing this forum: No registered users and 37 guests