Chinese enhanced firmware for framebuf components

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
wangshujun@tom.com
Posts: 12
Joined: Fri Feb 15, 2019 9:22 am

Chinese enhanced firmware for framebuf components

Post by wangshujun@tom.com » Sun Feb 21, 2021 3:42 pm

https://github.com/wangshujun-tj/mpy-Framebuf-boost

Modify framebuf.c implementation

In addition to Chinese support, it also provides FB large character display, 8 megabyte / 16 megabyte flash precompile, and BMP file display and storage

User avatar
pythoncoder
Posts: 4940
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Chinese enhanced firmware for framebuf components

Post by pythoncoder » Sun Feb 21, 2021 3:59 pm

Alas I can't read the Chinese README, so I may be wrong. But this appears to be closed source. If so, this is a pity as framebuf enhancements are of general interest.
Peter Hinch

stijn
Posts: 573
Joined: Thu Apr 24, 2014 9:13 am

Re: Chinese enhanced firmware for framebuf components

Post by stijn » Sun Feb 21, 2021 4:08 pm

Probably this is the corresponding MIT-licensed source: https://github.com/wangshujun-tj/mpy-Fr ... boost-code

wangshujun@tom.com
Posts: 12
Joined: Fri Feb 15, 2019 9:22 am

Re: Chinese enhanced firmware for framebuf components

Post by wangshujun@tom.com » Mon Feb 22, 2021 2:29 am

I don't know the rules of open source very well. I'm willing to share the code that needs to be modified

The Chinese font library comes from the font library of windows system. It is captured after displaying the screen picture. It is not confirmed whether there is copyright conflict

Because most of the users who need Chinese display are Chinese users, they directly write Chinese information

For now, this change:

1. Replace a file framebuf. C

2. Add a header file of English font

In addition, we need to refer to the seek in stream. C. It is not clear whether it is the most reasonable choice to refer to this seek

wangshujun@tom.com
Posts: 12
Joined: Fri Feb 15, 2019 9:22 am

Re: Chinese enhanced firmware for framebuf components

Post by wangshujun@tom.com » Mon Feb 22, 2021 2:34 am

Here is the demo code and video

https://github.com/wangshujun-tj/mpy-Fr ... st-ssd1306

The Chinese font library is downloaded from the file system. Without using Chinese, you can also get large English fonts, enlarge, rotate, and reverse

wangshujun@tom.com
Posts: 12
Joined: Fri Feb 15, 2019 9:22 am

Re: Chinese enhanced firmware for framebuf components

Post by wangshujun@tom.com » Fri Feb 26, 2021 3:19 pm

Firmware feature update

By adding 4-bit look-up table conversion function, TFT can be driven by 4-bit FB

The background color of character display is added. When the background color is 0, it remains transparent

Fixed RGB24 BMP display color error

Demo added

ST7567 monochrome LCD module 128x64 , esp8266+esp32 demo

Ssd1306 monochrome OLED module 128x64 , esp8266+esp32 demo

St7735 0.96 TFT module 80×160

St7789 1.14 TFT module 135×240

St7735 0.96 TFT 16color display module 80x160 , esp8266+esp32 demo

wangshujun@tom.com
Posts: 12
Joined: Fri Feb 15, 2019 9:22 am

Re: Chinese enhanced firmware for framebuf components

Post by wangshujun@tom.com » Tue Mar 02, 2021 2:39 pm

This function is also normal when tested on stm32f407 board

The font files are stored in sdcard

The display speed is much faster than that of esp32

Rgb565 mode can support 128 × 160

The 16 color mode can support 320 × 240

Post Reply