lspr98 / bike-computer-32

Simple open source bike computer based on an ESP32-C3. Supports OSM-offline maps, GPX-track rendering and Multi-Constellation GNSS positioning.
9 stars 3 forks source link

Using an OLED display #1

Open korsehindi opened 4 months ago

korsehindi commented 4 months ago

Hi, The display used in this project is expensive and can't even be found in Chinese stores, how to use an 1.3 inch oled display with i2c connection.

lspr98 commented 4 months ago

Hey korsehindi,

the memory display was chosen due to its good readability in direct sunlight and low power consumption. Using an i2c display (TFT, OLED, etc...) should be possible since the pins D4 and D5 are still unused but I cant guarantee it since I dont have any i2c displays to try it.

This repository provides some tests I wrote for the individual hardware components that you can adapt to make it work with your own display. Have a look at software/esp32/esp32c3-display-test/src/main.cpp. The test renders a small part of a map to the display and rotates it indefinitely around the center. If you can use your display with the Adafruit GFX library, then it should be relatively straight forward to replace the display.* calls with the equivalent for your display.

Once that works, you can have a try at adapting software/esp32/esp32c3-bike-companion-32/src/sharedspisdcard.cpp to your display but you will be on your own for that.

korsehindi commented 4 months ago

Thanks, I will try, I hope I succeed. I will probably need your help.

iDoka commented 3 months ago

+1

Would be nice to have an alternative (and cheaper) display which can order on Aliexpress with at least several different suppliers.

If anybody know cheap E-Ink display with similar dimension - please share (sunlight is a huge issue in my geo).

idreamsi commented 3 months ago

+1

Would be nice to have an alternative (and cheaper) display which can order on Aliexpress with at least several different suppliers.

If anybody know cheap E-Ink display with similar dimension - please share (sunlight is a huge issue in my geo).

There is an alternative (and cheaper). image

more info: + , + Of course, the dimensions are different.