Page 1 of 1
OLED display on ONE+
Posted: Sun Nov 29, 2020 5:42 pm
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
Re: OLED display on ONE+
Posted: Tue Dec 01, 2020 10:10 am
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.
Re: OLED display on ONE+
Posted: Mon Dec 07, 2020 3:04 am
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