Closed ghost closed 2 years ago
The abstraction example can be found here: https://github.com/olikraus/u8g2/blob/adb13305ffa963ca04d68f4444201ab0ba56f905/sys/utf8/xbm_picture_loop/main.c
The API should be a functional equivalent to:
I don't think so.
If you can't or don't want to put the time into writing it, that is fine and entirely up to you, I don't have the time to write it myself right now.
There are two ways to control the ssd1306.
Output in page units. It does not require internal memory and operates at high speed.
Redraw the entire TFT 8 pages * 128 segment internal memory is required. And you need a flash function like utf8_show (). Nothing is displayed unless utf8_show () is done. Even when changing one character on the TFT, the entire drawing is performed.
A second method is needed to draw at Position (x, y).
Because SSD1306 can only operate pages.
SSD1306 has the concept of X position(=segment position), but not the concept of Y position.
Use the page number instead of the Y position.
Trying to find the source of the API, but this example is more accurate than the one I posted before: https://github.com/olikraus/u8g2/blob/master/sys/arduino/u8g2_page_buffer/XBM/XBM.ino
A function that is dependent on one single width seems a bit limited to me.
I found that XBM bitmap format is very usefull.
This page is very useful. https://www.mischianti.org/2021/07/14/ssd1306-oled-display-draw-images-splash-and-animations-2/
Excellent! Your repositories are a blessing, is there a way I can send you coffee/beer/bento money?
is there a way I can send you coffee/beer/bento money?
No, thanks.
I was able to gain knowledge of XBM bitmaps.
The API should be a functional equivalent to:
https://github.com/olikraus/u8g2/wiki/u8g2reference#drawxbm=