lora-aprs / LoRa_APRS_Tracker

A LoRa based APRS tracker for ESP32 boards.
MIT License
313 stars 109 forks source link

Support for other OLED drivers? #29

Open RipperFox opened 3 years ago

RipperFox commented 3 years ago

I shot myself a bit in the foot and accidentally bought an OLED with a SH1106 chip instead of a SSD1306 based one. At least the pin out allows to solder it directly to my T-Beam (any idea where I can get a SSD1306 based OLED with VCC,GND,SCA,SCL pin out?). It works if I use the library from https://github.com/nhatuan84/esp32-sh1106-oled I'm no embedded dev, but shouldn't a more universal OLED library be used in which the display could be configured?

db1sdj commented 3 years ago

I wanted to reprogram my RDZSonde board with the lora-aprs-Tracker. Me too had the wrong display (the one from RDZSonde: with the color ILI9225 chip) for the tracker SW. So I am interested too with the possebility of changing the type of display. The SW is functioning, but no display.

xe2ad commented 2 years ago

Hi RipperFox, @RipperFox How did you include the SH1106 libraries at Platformio ? I can´t find a correct way to include them at the platformio.ini, so I downloaded them and put the path of the library where it is saved at my computer but neither of both options work. Also I replaced at the display.cpp file all the "SSD1306" by "SH1106" but it didn´t work.

RipperFox commented 2 years ago

@xe2ad Huh, that was a while ago :) I think I just downloaded the lib from https://github.com/nhatuan84/esp32-sh1106-oled and threw it in the src folder and modified the display.cpp a bit - see attached file display.zip t

xe2ad commented 2 years ago

@RipperFox Many thanks for the display.h file !!!! I drag the nhatuan84 libraries into the .pio/libdeps/ttgo-t-beam-v1 and that issue has gone. At the beginning when I used your display.h, I got another error, related with a display_toggle variable... at the end I commented that variable and the display started to work! Thanks again for your help! -David.