Hi, i hv a project that needs to convert the bitmap of ST7920 controller to that of the SSD1309.
Wondering if anybody here seen one or had written one?
Many thanks in advance.
Hi, i hv a project that needs to convert the bitmap of ST7920 controller to that of the SSD1309.
Wondering if anybody here seen one or had written one?
Many thanks in advance.
Which library have you been using for ST7920 ?
Which library do you want to use for SSD1309 ?
As a general rule, the constructor will be different but the library methods will be the same e.g. lcd.drawCircle(x, y, r) or lcd.print("David Prentice"), ...
Likewise, lcd.drawBitmap(), lcd.drawXBitmap(), ...
However the physical pixel mapping is different on SSD1309 and ST7920. But that should only concern you if you are writing directly to lcd.buffer[].
Something that is useful for animations but seldom done in normal applications.
David.
Hi David, many thanks for your help n reply.
Actually I'm trying to hack the data path of one controller currently driving the ST7920 LCD display to get it to an Oled display controlled by SSD1309.
My plan is to intercept the existing SPI from one main board deciphering the message of an BMS, read it in using an ESP32, then convert the pixel map to SSD1309 pixel map addr.
I haven't looked in details yet of the two pixel mapping (but probably I won't understand the header file or something as I'm not strong in C.)
Was just trying to see if anyone has seen or done the bridging codes. My idea is probably just need an offset code of the address if it's just offset by one formula...
I am gobsmacked. If you have the source code for the ST7920 device, you simply rebuild for a SSD1309.
If you don't have access to the source code but want to steal the data, it is fairly straightforward.
You intercept the SPI traffic and decode it.
I asked about libraries because some update individual pixels. And some maintain an image buffer in SRAM, then blit the whole buffer in one go. e.g. display.display(); in Adafruit_SSD1306 library.
David.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.