B4R Question AdafruitSSD1306 LIbrary Question

daveinhull

Active Member
Licensed User
Longtime User
Hi All,

I've using the AdafruitSSD1306 library successfully, but I have two OLED displays, one is 128x32 and the other is 128x64.

I was wondering if there is an easy way to swtich between them?
I've had a look at the Adafruitssd1306.h & .cpp and it looks as if you have to change a #define to select between them. I tried creating two librations one called AdafuitSSD1306_128x64 and the other ...._126x32, but just got into a bit mess.

Anyone any thoughts?

Thanks
Dave
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…