Author Topic: MAX7219 matrix display smaller “font”  (Read 459 times)

0 Members and 1 Guest are viewing this topic.

Offline kuzm1nsk1Topic starter

  • Contributor
  • Posts: 23
  • Country: hr
MAX7219 matrix display smaller “font”
« on: February 12, 2024, 11:35:16 pm »
Hello, I’m using Arduino Uno to interface MAX7219 8x8 dot matrix display with 4 modules. Can someone reccomend a way to fit 6 digits on 4 modules that would display clock as for example 12 : 34 : 56. The default “font” using MAX7219 or parola library is to big and I can’t find a way to size it without writing my own code from the beginning.
 

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 6264
  • Country: fi
    • My home page and email address
Re: MAX7219 matrix display smaller “font”
« Reply #1 on: February 13, 2024, 01:53:41 am »
Hello, I’m using Arduino Uno to interface MAX7219 8x8 dot matrix display with 4 modules. Can someone reccomend a way to fit 6 digits on 4 modules that would display clock as for example 12 : 34 : 56. The default “font” using MAX7219 or parola library is to big and I can’t find a way to size it without writing my own code from the beginning.
See https://arduinoplusplus.wordpress.com/2016/11/08/parola-fonts-a-to-z-defining-fonts/.

You have 32 LEDs horizontally.  I'd use
Code: [Select]
H H H · h h h h · · · M M M M · m m m m · · · S S S S · s s s s      1 = 0x01
H H H · h h h h · · · M M M M · m m m m · · · S S S S · s s s s      2 = 0x02
H H H · h h h h · X · M M M M · m m m m · x · S S S S · s s s s      4 = 0x04
H H H · h h h h · · · M M M M · m m m m · · · S S S S · s s s s      8 = 0x08
H H H · h h h h · · · M M M M · m m m m · · · S S S S · s s s s     16 = 0x10
H H H · h h h h · X · M M M M · m m m m · x · S S S S · s s s s     32 = 0x20
H H H · h h h h · · · M M M M · m m m m · · · S S S S · s s s s     64 = 0x40
H H H · h h h h · · · M M M M · m m m m · · · S S S S · s s s s    128 = 0x80
The data displayed on the four MAX7219 modules is formed from 32 bytes, each byte defining one (vertical) column of LEDs.  Each LED corresponds to a binary digit, the values shown above on right.

You essentially need five 8×3 glyphs –– space, ':', '0', '1', '2' –– and eleven 8×4 glyphs –– space, and '0' through '9'.  You need to draw these yourself, I'm afraid.
« Last Edit: February 13, 2024, 01:55:31 am by Nominal Animal »
 
The following users thanked this post: kuzm1nsk1


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf