vitotai / BrewPiLess

Use an ESP8266 to replace RPI and Arduino. Running BrewPi without Pi, therefore, BrewPi-Less
349 stars 131 forks source link

2 Button with ESP32 #417

Closed glenosAU closed 2 months ago

glenosAU commented 4 months ago

Hi, Can anyone advise the code changes need to enable 2 button use on the ESP32 board? The instructions in the Docs is for the D1 Pro board and the pin assignments are different. https://github.com/vitotai/BrewPiLess/blob/master/docs/10.HardwareGeneral.md#input-options

I tried fiddling in Config.h and different pin combinations to no result.

Thanks Glen

vitotai commented 4 months ago

The only pins available of ESP8266 are D0 and D2 that should be left open when boot. That's why I implemented two buttons. The operation is awkward in my experience. ESP32 has more than enough pins for rotary encoder, so rotary encoder is the only supported input device.

glenosAU commented 2 months ago

OK. I asked as I was retrofitting an ESP32 to a previous brewpiless build which used an ESP8266.