1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.62k stars 795 forks source link

Touch Based Display Blanking #2015

Closed NorthernMan54 closed 3 months ago

NorthernMan54 commented 3 months ago

Description:

I had an interesting thought the other day, what about leveraging the ESP32 Touch sensor, and use it to enable the SSD1306 display ?

This is a quick pull request with the feature.

To enable, add 'DISPLAY_BLANKING=true' to your compiler directives, and connect a wire to DISPLAY_BLANKING_TOUCH_GPIO ( defaults to GPIO 2 ).

Then when you touch the wire, the screen turns on for 30 seconds. If you build a case, just expose the wire.

Checklist:

1technophile commented 3 months ago

Thanks

NorthernMan54 commented 3 months ago

If you have a moment to give it a try, let me know what you think and I will update the documentation to mention the feature.

I have had it running on my test devices for a while, and thought it was a great feature.