OLED display on ONE+

Inquiry and support for Freematics products
Post Reply
fdsh
Posts: 4
Joined: Sun Aug 30, 2020 9:14 pm

OLED display on ONE+

Post by fdsh »

Hi all,

while waiting for my kit, I wonder whether the 2 external GPIOs can be used for an external OLED display?
That would really turn the ONE+ box into a multifunction unit.

Cheers,
Florian
stanley
Site Admin
Posts: 1018
Joined: Sat Mar 01, 2014 3:15 am

Re: OLED display on ONE+

Post by stanley »

Yes you can. Actually the code is already there for SH1106 I2C OLED and any GPIO of ESP32 can be used for I2C.
fdsh
Posts: 4
Joined: Sun Aug 30, 2020 9:14 pm

Re: OLED display on ONE+

Post by fdsh »

Hi Stanley, thanks for the response.

Got my package this weekend and I started looking at the code first since I can't access my vehicle just now.
Forgive my ignorance, a couple of (noob) questions:
- How can I use other display drivers? I want to use SSD136 driver. There are libraries for Arduino, but not sure where to include it in your code.

- Didn't find any reference to the i2c pins, since they need to be mapped to the external pins with GPIO 24, 34. The code refers to them as PIN_SENSOR1 and 2.
--> edit: reference is on the developers' page: https://freematics.com/pages/products/f ... lus/guide/

- I understand ESP32 has two I2c buses. Is there any documentation how ONE+ B is wired with ESP32?
Especially i2c bus(es). I imagine at least GPS would be connected via i2c and I'd like to avoid interfering with that. Couldn't find any internal wiring charts though...
--> edit: they are linked on the main product page, duh: https://freematics.com/products/freemat ... s-model-b/

Any pointers to documentation, etc. are appreciated.

Cheers,
FD
Post Reply