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
OLED 128x32 - library modification?
Re: OLED 128x32 - library modification?
Found it out myself
Will publish a modified library, if interesting.
Michael
Will publish a modified library, if interesting.
Michael
Re: OLED 128x32 - library modification?
Can you make a pull request to https://github.com/Z-Wave-Me/Z-Uno-Core ... O_OLED_I2C ?
-
- Posts: 3
- Joined: 01 Sep 2018 23:30
Re: OLED 128x32 - library modification?
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
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
Re: OLED 128x32 - library modification?
I'm in this week not available - will upload lib in next week.
Michael
Michael
Re: OLED 128x32 - library modification?
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?
May be someone from the community is interested to port new features to Z-Uno OLED lib?
-
- Posts: 3
- Joined: 01 Sep 2018 23:30
Re: OLED 128x32 - library modification?
Hi Michap, any update ?
Re: OLED 128x32 - library modification?
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
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 359 times
Re: OLED 128x32 - library modification?
Sharing two modifications:
1. Swedish national characters in SmallFont.
The extended character set is located above 127 in the ASCII table so what I have done is simply to extend the SmallFont definition in the ZUNO_OLED_I2C.cpp file and added the bitmap for our 6 additional Swedish characters. All other positions in the list are set to SPACE.
To note: oled.print() does not work for the extended character set for reasons beyond my comprehension. The workaround I am using is to use oled.write(ascii_value) to print the special character.
Example:
Code that does not work:
What you have to do is this:
Attached is the modified ZUNO_OLED_i2C.cpp file along with a simple design tool for 6x8 fonts I've made in Ms Excel. Feel free to use and share any character you design.
2. Added the SPACE character to the Numbers24 font.
You will find the updated ZUNO_OLED_FONT_NUMB24.cpp attached. The fix is quite simple: I have changed the font table so it starts at ascii value 32(dec) which is the space character.
it would be great if the baseline library could be expanded accordingly.
1. Swedish national characters in SmallFont.
The extended character set is located above 127 in the ASCII table so what I have done is simply to extend the SmallFont definition in the ZUNO_OLED_I2C.cpp file and added the bitmap for our 6 additional Swedish characters. All other positions in the list are set to SPACE.
To note: oled.print() does not work for the extended character set for reasons beyond my comprehension. The workaround I am using is to use oled.write(ascii_value) to print the special character.
Example:
Code that does not work:
Code: Select all
oled.print("Önsketänkande"); // Won't work. 'Ö' and 'ä' will be printed as ' ' (two space characters each)
Code: Select all
oled.write(214); // The letter 'Ö'
oled.print("nsket");
oled.write(228); // The letter 'ä'
oled.print("nkande");
2. Added the SPACE character to the Numbers24 font.
You will find the updated ZUNO_OLED_FONT_NUMB24.cpp attached. The fix is quite simple: I have changed the font table so it starts at ascii value 32(dec) which is the space character.
it would be great if the baseline library could be expanded accordingly.
- Attachments
-
- OLED font updates.7z
- (17.2 KiB) Downloaded 410 times