-
If I were sending a short string such as "JOE" to the I2C SSD1306, in pulseview with a Salae clone, I see 3 columns of data sent, but not my 4A,4F,45. How does the library juggle the data to send to the display over i2c? Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
U8g2 will convert your ascii chars into a bitmap and send the bitmap data. This is, why you have to assign a font.
As expected??? The SSD1306 expects bitmaps not ascii chars. Just read the SSD1306 datasheet then you will understand that the expected data of the SSD1306 is bitmap data. Don't get confused with those 16x2 dot matrix displays. They do expect ascii and do the conversion to dot matrix bitmaps internally in the hardware. However this is not at all true for SSD1306. And this is also the reason why libs like u8g2 are MUCH more complicated than LiquidChrystal lib. |
Beta Was this translation helpful? Give feedback.
-
I thought that when I saw the font files. Thank you, |
Beta Was this translation helpful? Give feedback.
U8g2 will convert your ascii chars into a bitmap and send the bitmap data. This is, why you have to assign a font.
The font contains a bitmap image for each char.
As expected??? The SSD1306 expects bitmaps not ascii chars. Just read the SSD1306 datasheet then you will understand that the expected data of the SSD1306 is bitmap data. Don't get confused with those 16x2 dot matrix displays. They do expect ascii and do the conversion to dot matrix bitmaps internally in the hardware. However this is not at all true for SSD1306.
And this is also the reason why libs like u8…