JosephHewitt / wardriver_rev3

A portable ESP32-based WiFi/Bluetooth scanner for Wigle.net.
https://wardriver.uk
GNU General Public License v3.0
251 stars 25 forks source link

Support larger LCDs #103

Open JosephHewitt opened 1 year ago

JosephHewitt commented 1 year ago

Right now the LCD parameters are hardcoded. It would be good to allow larger displays with larger font sizes.

Shadesh commented 1 year ago

Just make the variables

SCREEN_WIDTH 128 SCREEN_HEIGHT 32

adjustable via the cfg.txt

JosephHewitt commented 1 year ago

That is the general idea, however the display is initialized much sooner than the cfg.txt being loaded. The display is meant to be one of the first things to load so that any early errors can be displayed on boot.

Hopefully if a larger display is used, it can still be initialized using the old values then can be re-initialized using the correct values later on. This would mean that any boot errors are displayed in a small font, but that's probably a "good enough" implementation.