Font editing for LED matrix

Font editing for LED matrix

Postby Janke » Sun Jul 02, 2017 9:31 am

I don't know if anyone plans to build a LED matrix display like the ones I've built, but here's a font displaying program including the 3 fonts I've designed (well, the first is actually from an Arduino website, with just a few small changes.)

This BASIC code will run without any extra hardware whatsoever, just plug the EzSBC1 to your computer via USB, and run the code in your terminal program. Note that the display will be correct only if the terminal uses a monospaced font, such as Courier.

Note that I have used some of the more unusual character positions in the ASCII table for our Scandinavian diacriticals ÅÄÖåäö and for some special signs I need...

It's easy to make changes; just search the DIM statements for the hex value for a particular character (always compare with the surrounding values since there are many duplicates), and then change it. It helps if you have some graph paper to sketch the character you want, then convert it to hex. MSB is at bottom, LSB at top. The small alphabet uses 8 bits, the large ones use 16 bits for each vertical LED column in a character.

If you change the width of a character, remember to change the index, too, in the following DIM statement. There is a one-pixel "reserve" since I've included an empty column between all characters. The printout shows both the index (decimal) and the hex value in front of the characters.

Hoping you enjoy just looking at the printout, even if you never build a LED matrix yourself!
3 FONTS.txt
(15.43 KiB) Downloaded 145 times
Posts: 29
Joined: Mon Feb 20, 2017 2:48 pm

Return to EzSBC1

Who is online

Users browsing this forum: No registered users and 1 guest