Dear OliverHow can I add other languages to U8g2 lib? (for example "u8g_font_unifont_12_13")I tried to add "u8g_font_unifont_12_13" to "U8g2_fonts.c" file but I was not successful
I like to display large characters on an EA DOGM240S-6 display and suppose this is possible using the U8g2 lib but where can I find fonts that can be used. I planed to use an Arduino UNO the drive the display and control my audio preamplifier.
U8GLIB_ST7920_128X64_1X u8g(22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32); // 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7 en=18, di/RS=17,rw=16
U8G2_ST7920_128X64_2_8080 u8g2(U8G2_R0, 22, 23, 24, 25, 26, 27, 28, 29, /*enable=*/30, /*cs=*/U8X8_PIN_NONE, /*dc=*/32, /*reset=*/ U8X8_PIN_NONE);
According to the ST7920 datasheet, the PSB pin selects between the 8-Bit and the serial (SPI) bus. For the serial bus, pin "RS" is "Chip-Select", pin "E" will be the clock input and pin "RW" acts as data line.
dc Data/command selection line (register select) D/C, A0, RS, ...
Hm, strange...Because Parallel connection with u8g2 doenst seems to work with my ST7920 128x64 display I thought I'll "just" switch to SPI.Now I found out that SPI also doesnt work. I get strange artifacts in the display and can barely see the text that should be written on the display.Then I tried software SPI and that works fine, but horrible slow.Then, again, I switched back to U8Glib and everything work awesome.I've tested this with my Mega, Nano and Uno. So I dont think that the controller is the guilty one.Any ideas?I would still prefer to use the parallel mode
It's also quite confusing what "RS" actually really is.On this site it tells me that CS is RS :https://github.com/olikraus/u8g2/wiki/setup_tutorial#select-a-physical-busOn this site it tells me that RS is dc :https://github.com/olikraus/u8g2/wiki/u8g2setupcpp#st7920-128x64So how do I have to wire the display correct and build the constructor for my display.As I said, with the older U8Glib everything works fine.
The latest version is working on SIMBLEE hardware with software I2C on a SSD1306 128x64.Thank you.However the I2c speed seems to be slow. what is the proper way to adjust the software I2C speed?