RP6conrad / ESP-GPS-Logger

GPS logger for Speedsurfing, based on ESP32 & Ublox M8N hardware.
MIT License
28 stars 16 forks source link

266 display modifications #29

Open Freezer-SD opened 6 months ago

Freezer-SD commented 6 months ago

Hi Jan,

I added support for the 2.66inch screens (BN266) initially requested by Rolfz. Due to the changed resolution I had to overhaul the complete E_paper.cpp and change the locations to be relative to fontsize is display width and height. Added more fonts to accomodate the various screens. Also the BETA large font for Alphas has been updated for all fields and also the largest speed font has now the functionality to choose the fields. I modified the stats fields 1-5 with more information. I also added the battery status in the fiels==5 for distant stats (as requested on github) The battery reading can now be selected in the config file in either voltage or percentage. I added a new board logo OneHundred and a new sail logo classic NorthSails.

I did not (yet) follow-up on your suggestion to remove the if statements displayheight <130, (but could be done later). The partial or full screen-update is not always crisp, not sure why. Perhaps more frequent full-updates needed? Also on the sleep-screen there remains a dark edge, as if the full update does not cover some pixels at the edges. This is a bit annoying. Perhaps the 266 in the ESP_functionas.h are not ideal. I found various recommendations on the web. At least these seem to work, but not sure if it is optimal.

There might be a few more changes that I cannot think of right now. Please have a look before merging.

Freezer-SD commented 6 months ago

O, and it was based on 3.81 when I started. I did not include the updates to 5.82 yet.

RP6conrad commented 6 months ago

As I saw a lot of conflicts in the merging, so I renamed your file e_paper.cpp -> e_paper_266.cpp, e_paper.h -> e_paper_266.h. Some other small changes were needed, but now you can compile it with the SW 5.83. In the header of RTOS5.ino, include e_paper_266.h instead of the e_paper.h. Still need to add RTC_bat to the web configuration, set it now fixed to zero. I will make a RTOS5.83B266.bin file in the repo, can you check it on your display ?