Hello,
Does anybody knows how can I add hebrew support for the oled screen?
Thanks
Hello,
Does anybody knows how can I add hebrew support for the oled screen?
Thanks
Be Hazlacha!
Chag Sameach.
Hi
I put together unifont codes 0x0000 ... 0x007f and 0x0580 ... 0x05ff into one u8glib font (u8g_font_unicode_0_11.c). This font can be set with the command "u8g.setFont()". The font itself can be pasted directly into the .ino file.
The result of
u8g.drawStr(&u8g, 0, 20, "ALEF:\xd0 BET:\xd1");
can be seen in the attached png file.
Oliver
u8g_font_unifont_0_11.c (10.5 KB)
Well thank you and Chag Sameach
My display uses I2C and for some reason my display cannot use hardware I2C pins, so I modified adafruit's library so I can use software I2C and that worked.
Does you library support software I2C ?
thank you.
U8glib only supports HW SPI (Google Code Archive - Long-term storage for Google Code Project Hosting.).
Why can't you use HW SPI?
Oliver
I've bought this display from ebay:http://www.ebay.com/itm/0-96-I2C-IIC-SPI-Serial-128X64-OLED-LCD-LED-Display-Module-for-Arduino-blue-/281232746437?pt=LH_DefaultDomain_0&hash=item417ac727c5
And I can't use it with SPI.
Oh, my mistake. Replace SPI by I2C.
U8glib supports SPI but also Hardware I2C for this controller. In fact, this display should be supported by U8glib. See also the gallery page: Google Code Archive - Long-term storage for Google Code Project Hosting. and the related discussion here: Problem with SSD1306 LCD and U8glib - Displays - Arduino Forum.
However Software I2C is not supported by U8glib, so my question should be: What is the reason that you can not use Hardware I2C?
Oliver
Well I don't know,it's just doesn't work :~
Itai_g10:
Well I don't know,it's just doesn't work :~
Did you try U8glib? What is your Arduino board? How did you wire the OLED?
Oliver
I bought this arduino board from ebay :http://www.ebay.com/itm/130905365831?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649
Yes,I've tried u8glib.
The wiring that I've tried is:
Oled-Arduino:
GND -> GND
VCC -> VCC
SDA -> A4(the analog 4th pin)
SCL -> A5(the analog 5th pin)
Thanks.
Looks correct, which U8glib constructor did you use?
This display requires this constructor:
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NO_ACK);
Oliver
I will try it later,because my display is already soldered into my project.
Thank you
olikraus:
HiI put together unifont codes 0x0000 ... 0x007f and 0x0580 ... 0x05ff into one u8glib font (u8g_font_unicode_0_11.c). This font can be set with the command "u8g.setFont()". The font itself can be pasted directly into the .ino file.
The result of
u8g.drawStr(&u8g, 0, 20, "ALEF:\xd0 BET:\xd1");
can be seen in the attached png file.
Oliver
Can you please give instructions on how to use the font?
If I paste it into the ino project it does not compile complaing about u8g.h
If I put it in utils directory it does not know the file:
"error: 'u8g_font_unifont_0_11' was not declared in this scope
Error compiling."
What am i missing here?
Hi
Copy the content of the above attached file (without the include statement) to your .ino file. Use u8g_font_unifont_0_11 as argument for the u8g.setFont() command.
Oliver
olikraus:
HiCopy the content of the above attached file (without the include statement) to your .ino file. Use u8g_font_unifont_0_11 as argument for the u8g.setFont() command.
Oliver
Sorry for the noob question but just to refine.
download file (xx.c)
add to ino (so its now a second file in the ino)
remove the "#include "u8g.h"" text
compile?
(I am not at home, so i cannot test this right now),
Does the scenario look correct?
Update::
This does not work,. if I remove the include it gives out many more errrors
Can you please attach a working ino?
Just copy the array (Ctrl-C) to the same .ino file. There should be only one .ino file. Of course it will work with two files also, but this would be more complicated.
Oliver
SUCCESS!!!!