Numeric display with ST7789 and Arduino - RREFont vs PropFont
Quick numeric display tutorial
- for nice digits I used 13x20 pixel font with 2x scaling in Y axis (so 13x40 pixels are rendered, even 16x40 with spacing)
- regular bitmap fonts are very slow to render pixel by pixel (350ms in this example)
- however, what "slow" really means can be checked by trying other ST7789 libraries :)
- addeed special OPTIMIZE_BIG_FONTS mode which speeds up rendering of big bitmap fonts about 25%
- RRE fonts encoded in vertical mode give the best results (about 100ms)
- regular RRE fonts (rendered using rectangles) are the fastest and use less memory but flickering can be visible due to every character full background clearing before rendering
- all static data should be drawn only once for the best performance
- even on slow Arduino and high resolution ST7789 final results with RRE fonts are pretty promising, achieved 10 fps refresh rate for 5 big numeric fields using nice digits
The code on my GitHub:
https://github.com/cbm80amiga/Arduino_ST7789_Fast/tree/master/examples/ST7789_Numeric_display
If you find it useful and you want to buy me a coffee or a beer:
https://www.paypal.me/cbm80amiga
Видео Numeric display with ST7789 and Arduino - RREFont vs PropFont канала cbm80amiga
- for nice digits I used 13x20 pixel font with 2x scaling in Y axis (so 13x40 pixels are rendered, even 16x40 with spacing)
- regular bitmap fonts are very slow to render pixel by pixel (350ms in this example)
- however, what "slow" really means can be checked by trying other ST7789 libraries :)
- addeed special OPTIMIZE_BIG_FONTS mode which speeds up rendering of big bitmap fonts about 25%
- RRE fonts encoded in vertical mode give the best results (about 100ms)
- regular RRE fonts (rendered using rectangles) are the fastest and use less memory but flickering can be visible due to every character full background clearing before rendering
- all static data should be drawn only once for the best performance
- even on slow Arduino and high resolution ST7789 final results with RRE fonts are pretty promising, achieved 10 fps refresh rate for 5 big numeric fields using nice digits
The code on my GitHub:
https://github.com/cbm80amiga/Arduino_ST7789_Fast/tree/master/examples/ST7789_Numeric_display
If you find it useful and you want to buy me a coffee or a beer:
https://www.paypal.me/cbm80amiga
Видео Numeric display with ST7789 and Arduino - RREFont vs PropFont канала cbm80amiga
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Budowa trasy S8 Nadarzyn-Radziejowice - kwiecień 2017Budowa S7 odcinek Grojec-TarczynKruger&Matz Edge 1081 (Pipo W3 clone) Android testingNew BMW Car - Top Secret :)Budowa trasy S8 Nadarzyn-Radziejowice - sierpień 2017ESP8266 and LED Matrix as Kodi remote display of elapsed/remaining movie timeS7 odcinek Radom-SkarżyskoHX1230 96x68 LCD demo and library examplesKruger&Matz Edge 1081 (Pipo W3 clone) Passmark 8LeTV One X600 4K Sample Videos EUI 5.5.892SST7789 Power Consumption TestsLeTV One X600 Slow Motion Samples EUI 5.5.892SVienna to Warsaw in 28 minutesSerial Terminal Display in practical useSeagate Backup Plus Slim 2TB - benchmarksBudowa S7 w okolicach Szydłowca kierunek Radom czerwiec 2017Kruger&Matz Edge 1081 / Pipo W3 as DVB-T TV setGC9A01A fast SPI library optimized for 16MHz AVR ArduinoSkyRC iMAX B6 mini charger unboxing / rozpakowanieMorphing Clock DemoPC Hardware Monitor with Arduino and Nokia 5110 LCD