A library that allows to render nice, scalable 7-segment digits using the Arduino GFX library.
All Styles | Style7 Variations |
---|---|
![]() |
![]() |
YouTube videos:
- very fast rendering even on AVR Arduino
- no bitmap data is necessary - only rendering routines
- each number can have different width, height and segment thickness
- should work with any Arduino graphic library with user defined callbacks for drawLine() and fillRect()
- 3 styles of 7-segment font variation
- additional pseudo 3D look for color displays (style 2c)
- simple fast rectangular and outline styles
- each digit clears the necessary segments only, so clearing and refreshing the entire screen is not necessary (important for good performance on high-resolution LCD displays)
- examples for monochrome HX1230, ST7567 and color ST7789 IPS
- each style has separate methods/functions to save program memory
- if necessary only 3-4 functions can be used separately (setSize,drawSeg,drawDigit,printNumber) without the library
- special look with multi-layer rendering is possible: https://youtu.be/OPq9aBJP-pc
- new 7-segment style #7, int which the appearance of the segment can be defined using an additional parameter (can replace styles #1 and #2)
- styles 1 and 2/2c are now obsolete, use them only if you need lower memory usage, use style 7 instead
- style 7 supports now 2 colors similar to style 2c
- setSize7(50,100,13,6) is equivalent for setSize2(50,100,13)
- setSize7(50,100,13,0) is equivalent for setSize1(50,100,13) but setSize7(50,100,13,2) gives better appearance
- style 4 and 5 are renamed to F (filled) and O (outline) but old names left for compatibility
- new feature: setFrame(),printNumberFr() to render simple non-flickering numbers on any background with a frame around it
If you find it useful and want to buy me a coffee or a beer: