Chinese enhanced firmware for framebuf components

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
wangshujun@tom.com
Posts: 61
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: 5956
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
Index to my micropython libraries.

stijn
Posts: 735
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: 61
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: 61
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: 61
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: 61
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

Kevinyang
Posts: 2
Joined: Fri Mar 19, 2021 2:52 pm

Re: Chinese enhanced firmware for framebuf components

Post by Kevinyang » Fri Mar 19, 2021 3:12 pm

Great. This is very useful in learning,thinks

Kevinyang
Posts: 2
Joined: Fri Mar 19, 2021 2:52 pm

Re: Chinese enhanced firmware for framebuf components

Post by Kevinyang » Fri Mar 19, 2021 3:17 pm

按照你的说明,首先替换了你提供的modframebuf.c(git 连接下载)
修改了stream.c stream.h你说的相关内容,目前我是用的stm32 1.14环境,ss1306 但是做了几次,都是make 提示错误,
按照编译提示,是越改问题越多。

希望你把 相关改好的文件mail给我,谢谢!

User avatar
OlivierLenoir
Posts: 126
Joined: Fri Dec 13, 2019 7:10 pm
Location: Picardie, FR

Re: Chinese enhanced firmware for framebuf components

Post by OlivierLenoir » Fri Mar 19, 2021 8:08 pm

My Chinese in very poor (around ten words) and as Google seem to be a lot better than me, here is the translation.
Kevinyang wrote:
Fri Mar 19, 2021 3:17 pm
按照你的说明,首先替换了你提供的modframebuf.c(git 连接下载)
修改了stream.c stream.h你说的相关内容,目前我是用的stm32 1.14环境,ss1306 但是做了几次,都是make 提示错误,
按照编译提示,是越改问题越多。

希望你把 相关改好的文件mail给我,谢谢!
According to your instructions, first replace the modframebuf.c you provided (download via git connection)
Modified the relevant content of stream.c stream.h. At present, I am using stm32 1.14 environment, ss1306, but after doing it several times, make prompts errors.
According to the compilation prompt, the more the problem is, the more the problem is.

I hope you can email me the modified files, thank you!

Post Reply