OLED 128x32 - library modification?

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
michap
Posts: 318
Joined: 26 Mar 2013 10:35
Contact:

OLED 128x32 - library modification?

Post by michap » 23 Jun 2018 13:12

Hi,

somebody have already tried the ZUNO_OLED_I2C lib with smaller OLED?
(same controller SD1306 - but instead 128x64 - 128x32)

Or, any hint, where to modify the size in the lib?

Thanks!
Michael

michap
Posts: 318
Joined: 26 Mar 2013 10:35
Contact:

Re: OLED 128x32 - library modification?

Post by michap » 23 Jun 2018 23:31

Found it out myself ;)

Will publish a modified library, if interesting.

Michael

User avatar
PoltoS
Posts: 4262
Joined: 26 Jan 2011 19:36

Re: OLED 128x32 - library modification?

Post by PoltoS » 24 Jun 2018 08:53


Soundmanbe
Posts: 3
Joined: 01 Sep 2018 23:30

Re: OLED 128x32 - library modification?

Post by Soundmanbe » 23 Sep 2018 20:14

Hi Michap,
Your library is the one I'm looking for, with the 128x64 one, on my 128x32, the result is not really good ;-)
Can you send me it or a link to download it ?
Kind regards,
Pierre

michap
Posts: 318
Joined: 26 Mar 2013 10:35
Contact:

Re: OLED 128x32 - library modification?

Post by michap » 23 Sep 2018 20:46

I'm in this week not available - will upload lib in next week.
Michael

Soundmanbe
Posts: 3
Joined: 01 Sep 2018 23:30

Re: OLED 128x32 - library modification?

Post by Soundmanbe » 25 Sep 2018 15:15

Thanks :)

User avatar
PoltoS
Posts: 4262
Joined: 26 Jan 2011 19:36

Re: OLED 128x32 - library modification?

Post by PoltoS » 26 Sep 2018 22:19

We were notified that there is an update of the Arduino OLED library: http://www.rinkydinkelectronics.com/library.php?id=79

May be someone from the community is interested to port new features to Z-Uno OLED lib? ;)

Soundmanbe
Posts: 3
Joined: 01 Sep 2018 23:30

Re: OLED 128x32 - library modification?

Post by Soundmanbe » 03 Oct 2018 13:48

Hi Michap, any update ?

michap
Posts: 318
Joined: 26 Mar 2013 10:35
Contact:

Re: OLED 128x32 - library modification?

Post by michap » 03 Oct 2018 14:24

Hi,

attached my modified lib with sample sketch.
Use oled.begin(32) for the 128x32 pixel OLED.
There are no major changes in the lib - only the fillRect() function and parameter settings were modified.
For 128x64 oled.begin() or oled.begin(64) can be used.

@PoltoS: the update you told of the Arduino OLED library is working with buffer -I think not for default usage.
Maybe I will check it and we can do an alternate lib with less free RAM for the project in result.

Best regards
Michael
Attachments
OLEDFontDemo_32-64.zip
modified OLED lib - added 128x32pixel support.
(5.75 KiB) Downloaded 4 times

Post Reply