fizban99 / microbit_ssd1306

Simple micropython library for the micro:bit to control the SSD1306 display
MIT License
54 stars 33 forks source link

Can I use add_text after show_bitmap? #12

Closed bsmntoid closed 2 years ago

bsmntoid commented 2 years ago

As the title says, can I use add_text to overlay text on top of a bitmap? Trying this stretches the bitmap and inverts it.

fizban99 commented 2 years ago

This project is sort of abandoned, but I believe the issue is related to the fact that due to the low memory of micro:bit V1 all functions work in zoom mode and use a screen buffer except show_bitmap. Also show_bitmap is the only one that inverts the sceen. The idea is that since the pixels on the screen are white, a bitmap is displayed inverted, but you will typically want to show the text as white on top of black. Note also that the fact that show_bitmap does not use a buffer and loads directly the bitmap into the screen. This could probably be enhanced for micro:bit V2, since it has more memory available.

bsmntoid commented 2 years ago

ahhh, i see.