Two years ago I wrote about learning to use the Arduino UNO R4 WiFi, the board with a 12 by 8 LED matrix right on it. I ended that post with a promise: “You know that I will be hooking this up to CheerLights soon, but we noticed that the LEDs are only red. We will have to get creative.”
My son George had an idea back then: a CheerLights for emoji, where red could be a smiley face. I went another way. If the board can’t show the color, it can say it.
The R4 now reads the live CheerLights color and scrolls its name across the matrix. The text is in CheerLights Pixel, a brand new font made just for CheerLights. I’m going to start with the font, because I am really stoked about it.
Why CheerLights needed its own font
CheerLights has a rule: we never copy code from other projects. When the CheerLights ESP32 firmware started scrolling text, its font turned out to be Adafruit’s. That’s a fine font, but it isn’t ours. So CheerLights needed one of its own.
CheerLights Pixel is a 5 by 7 pixel font for LED matrices, small screens, and terminals, with 365 glyphs. It covers ASCII, the accented letters in Latin-1 and Latin Extended-A, and Romanian’s ș and ț, so names like Zoë, Müller, Łódź, and Ștefan scroll the way people write them.
Making it, testing it, and refining it was a blast. A 5 by 7 grid is a tiny puzzle, and this font is full of fun little answers to it.
A whole font in a text file
Every glyph lives in a plain text file as 8 rows of # and ., like the lowercase g:
U+0067 g
.....
.....
.####
#...#
#...#
.####
....#
.###.
Capitals and digits use rows 0 to 6, and lowercase sits on rows 2 to 6. Row 7 is for descenders, so g, j, p, q, and y hang below the line the way they should.
Accented letters aren’t drawn one by one, and this is the clever bit. A script reads each letter’s Unicode decomposition (é is e plus an acute accent) and puts the mark on the base letter. Change the acute mark once and every letter with an acute accent changes with it. Capitals that take an accent above are drawn 5 rows tall so the mark still fits in the 8-row cell.
Then there are the symbols, and this is where it gets fun. There’s a heart, a star, a globe, a snowflake, a tree, a pumpkin, a ghost, a bat, and a lightbulb. There’s even a string of lights that joins: put several in a row and they become one unbroken string. (It’s CheerLights, so of course there’s a string of lights.)
U+E002 stringlights join
##...##
..#.#..
...#...
..###..
..###..
...#...
.......
.......
Emoji typed on a phone draw as the symbol they mean, so ❤️, 💚, and 💜 all come out as the heart, ⭐ as the star, and 🌍 as the globe. That matters for CheerLights, where people type whatever they want.
Testing it and tweaking it
One build turns those text files into every format the font ships in:
- A C header for Arduino and ESP32
- A MicroPython module
- A BDF font for CircuitPython
- A JSON file of every glyph
- A Python package (
pip install cheerlights-pixel-font) - TrueType and web fonts, in square pixels and in round LEDs
The build is reproducible: the same sources give the same bytes. There are 32 automated tests that check the result. They render the TrueType fonts with FreeType, compile the C header, and read the BDF and JSON back.
Then came the refining, which is where the little surprises show up. FreeType 2.14’s light auto-hinter was lifting the accents by a pixel at small sizes. One pixel doesn’t sound like much, but on a font this small you notice it. So the fonts now carry an instruction that stops FreeType from auto-hinting them by default. Emoji needed work too: phones send invisible variation selectors after many emoji, so those are skipped now. And the space got narrower. The space character, I mean (outer space is fine).
The font already runs in the CheerLights ESP32 firmware, the CheerLights terminal tool, and the CheerLights pages on GitHub. The UNO R4 WiFi was the next stop.
Why it fits the UNO R4 WiFi matrix
The R4’s matrix is 12 columns by 8 rows. CheerLights Pixel stores each glyph as one byte per column, with bit 0 as the top row, in an 8-row cell. That maps straight onto the frame the Arduino_LED_Matrix library draws, so there’s nothing to convert. About two letters fit on the matrix at once, so the text scrolls.
The first test on my board scrolled “CheerLights ♥ Zoë orange”. It looked perfect. George wanted the heart to scroll, and it did.

I also put it up against the font in Arduino’s own scrolling example, Font_5x7 from the ArduinoGraphics library:
- Taller lowercase. CheerLights Pixel’s lowercase letters are 5 rows tall, against 4. Color names are lowercase, so they come out bigger and clearer on the same 8 rows.
- All 8 rows. Arduino’s example starts its text on row 1 and leaves the top row empty.
- Accents that work.
Font_5x7actually contains an ë, but it reads text one byte at a time. Arduino sketches are saved as UTF-8, so ë arrives as two bytes, and “Zoë” scrolls as “Zoë”. CheerLights Pixel reads UTF-8, so Zoë stays Zoë, and the heart is a heart. - One cost. CheerLights Pixel isn’t narrower. Across all 11 CheerLights color names, the text spans 298 columns, against 274 for
Font_5x7. That’s about 9% longer, or about two more columns per name, around 175 ms at the sketch’s scroll speed. I’ll happily trade that for bigger letters.
Tutorial: the live CheerLights color on your R4
If you’re new to the board, my 2024 post covers setting up the Arduino IDE and installing the UNO R4 board package.
- In the Arduino IDE, open the Library Manager, search for CheerLights, and install version 1.0.6 or later.
- Open File > Examples > CheerLights > CheerLights_UNO_R4_WiFi_LED_Matrix.
- Put your Wi-Fi name and password in
secrets.h. - Upload it to your UNO R4 WiFi.
The font comes with the example, so there’s nothing else to install.
The CheerLights icon shows while the board connects to Wi-Fi. Then the board asks for the current color every 15 seconds and scrolls its name one column every 80 ms. When the color changes, the new name waits until the current one has scrolled off, so the text never jumps in the middle of a word.
The sketch gets the color from the CheerLights channel on ThingSpeak, channel 1417.
Going further
- Change the color yourself. Type
/cheerlightsand a color on the CheerLights Discord, and every CheerLights light in the world follows, including this one. - Scroll your own text. The font’s UnoR4Matrix example scrolls any message on the R4, names with accents and hearts included.
- Use the font anywhere. CheerLights Pixel is free under the SIL Open Font License, for firmware, apps, and web pages.
Get the Arduino UNO R4 WiFi on Amazon.
As an Amazon Associate I earn from qualifying purchases.
