Chinese enhanced firmware for framebuf components
-
- Posts: 61
- Joined: Fri Feb 15, 2019 9:22 am
Chinese enhanced firmware for framebuf components
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
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
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Chinese enhanced firmware for framebuf components
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.
Index to my micropython libraries.
Re: Chinese enhanced firmware for framebuf components
Probably this is the corresponding MIT-licensed source: https://github.com/wangshujun-tj/mpy-Fr ... boost-code
-
- Posts: 61
- Joined: Fri Feb 15, 2019 9:22 am
Re: Chinese enhanced firmware for framebuf components
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
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
-
- Posts: 61
- Joined: Fri Feb 15, 2019 9:22 am
Re: Chinese enhanced firmware for framebuf components
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
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
-
- Posts: 61
- Joined: Fri Feb 15, 2019 9:22 am
Re: Chinese enhanced firmware for framebuf components
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
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
-
- Posts: 61
- Joined: Fri Feb 15, 2019 9:22 am
Re: Chinese enhanced firmware for framebuf components
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
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
Re: Chinese enhanced firmware for framebuf components
Great. This is very useful in learning,thinks
Re: Chinese enhanced firmware for framebuf components
按照你的说明,首先替换了你提供的modframebuf.c(git 连接下载)
修改了stream.c stream.h你说的相关内容,目前我是用的stm32 1.14环境,ss1306 但是做了几次,都是make 提示错误,
按照编译提示,是越改问题越多。
希望你把 相关改好的文件mail给我,谢谢!
修改了stream.c stream.h你说的相关内容,目前我是用的stm32 1.14环境,ss1306 但是做了几次,都是make 提示错误,
按照编译提示,是越改问题越多。
希望你把 相关改好的文件mail给我,谢谢!
- OlivierLenoir
- Posts: 126
- Joined: Fri Dec 13, 2019 7:10 pm
- Location: Picardie, FR
Re: Chinese enhanced firmware for framebuf components
My Chinese in very poor (around ten words) and as Google seem to be a lot better than me, here is the translation.
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!
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!
Olivier Lenoir
https://gitlab.com/olivierlenoir
https://gitlab.com/olivierlenoir