Conversation
Copilot created this pull request from a session on behalf of
28pins
May 22, 2026 22:53
View session
There was a problem hiding this comment.
Pull request overview
This PR aims to enable the TXT command by defining TXT and adding a full a–z lowercase bitmap font table in Matrix.h for a 12×6 LED matrix.
Changes:
- Defines
TXTto enable compilation of the TXT command path. - Adds a
text[26][6][12] PROGMEMboolean font table containing glyphs for lowercase a–z.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+32
to
+38
| // Enable text/font functionality | ||
| #define TXT | ||
|
|
||
| // Font patterns for letters a-z (6 rows x 12 columns per letter) | ||
| // Each character is represented as a boolean array where true = LED on, false = LED off | ||
| // Font does not need to be monospaced - characters can have different effective widths | ||
| const bool text[26][6][12] PROGMEM = { |
Comment on lines
+35
to
+38
| // Font patterns for letters a-z (6 rows x 12 columns per letter) | ||
| // Each character is represented as a boolean array where true = LED on, false = LED off | ||
| // Font does not need to be monospaced - characters can have different effective widths | ||
| const bool text[26][6][12] PROGMEM = { |
Comment on lines
+32
to
+33
| // Enable text/font functionality | ||
| #define TXT |
Comment on lines
+35
to
+38
| // Font patterns for letters a-z (6 rows x 12 columns per letter) | ||
| // Each character is represented as a boolean array where true = LED on, false = LED off | ||
| // Font does not need to be monospaced - characters can have different effective widths | ||
| const bool text[26][6][12] PROGMEM = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes the Txt implementation in matrix.h by adding a complete non-monospaced bitmap font for 26 lowercase letters (a-z). This enables the TXT command functionality for displaying scrolling text on the LED matrix.
Changes
#define TXTdirective to enable text functionalitybool text[26][6][12] PROGMEMarray with bitmap patterns for all 26 lowercase lettersTechnical Details
Memory Verification (Arduino Mega2560)
✅ SRAM Used: 4,938 bytes (61% of 8,192 available)
✅ Free SRAM after overhead buffer: 754 bytes
✅ Font array: PROGMEM only (zero SRAM impact)
✅ Flash usage: ~5,500 bytes total (2% of 256 KB)
All constraints satisfied with ample headroom for runtime operations.
Compatibility
innerLoop()text display modetxt <frame> <color> <text>Files Modified
Matrix.h: Added TXT definition and complete font array