thorrak / tiltbridge

Tilt Hydrometer to WiFi Bridge
http://www.tiltbridge.com/
Other
61 stars 27 forks source link

Reenable Wifi Resets #143

Closed lbussy closed 3 years ago

lbussy commented 3 years ago

Wifi reset functionality was disabled, needs to be reenabled.

lbussy commented 3 years ago

Reenabled with eSPI, also added a board reset on GPIO35 while I was at it.

Should be working with ssd1306 but there's an include error I've not had time to hunt down.

Not working on TFT, need to figure out how touch works with the new lib.

Working on this in reset_buttons for now.

lbussy commented 3 years ago

Reset and WiFi resets now working for ssd1306 and eSPI.

The ssd1306 has two buttons on the face which are supported by the case Donnie made. One is the boot button (which is now the WiFi reset) and one is a real reset. Had to use the squix78/ESP8266 and ESP32 OLED driver for SSD1306 displays (which is the new name of the old ESP8266_SSD1306 lib.)

The eSPI has buttons in the same basic place but one is GPIO0 (which is now WiFiReset) and one is GPIO35 which I have made into a software reset to match the external configuration and functionality of the ssd1306.

For some reason, the TFT is not registering screen taps, even after adding back in I can validate with a test sketch, but n over-simplified in-situ test refuses to allow the taps to register. I hated that functionality but I don't want a new release to break previously functional workflows.

Still working on this in reset_buttons.

lbussy commented 3 years ago

The current issue is that scanning the screen via XPT2046_Touchscreen::isTouched() causes the screen to scramble (worse when the logo is on the screen.) All very strange.

As I typed this, John pointed out that despite the documentation, there appears to be some touchscreen support built-in.