Closed tonylloyd closed 3 years ago
This part of the code sets up the character spacing.
` // set up the inter character spacing showLen = (p != '\0' ? CHAR_SPACING : (MAX_DEVICESCOL_SIZE)/2); curLen = 0; state = S_SHOW_SPACE; // fall through
case S_SHOW_SPACE: // display inter-character spacing (blank column) PRINT("\nS_ICSPACE: ", curLen); PRINT("/", showLen); curLen++; if (curLen == showLen) state = S_NEXT_CHAR; break; ` so you need to change or eliminate this part of the code to do what you want.
I wish to remove the blank column between characters, instead adding the column to the font table to allow me to create sprite font characters that can be added end to end to create an image.
I have updated the font table to increase the width of the "normal" characters by one, and adding "0," to the end of the line for the blank column, but when I set the CHAR_SPACING constant to 0 it only draws the first character and nothing more on the LED.
Is there any way to get around this to not have the column hard-written?
My Environment
Library Version: MD_MAX72XX 3.2.4 Arduino IDE version: 1.8.13 Hardware model/type: NodeMCU 0.9 with ESP8266 OS and Version: Windows 10
Steps to Reproduce
Using the code from mytechtutor as linked below (HTML edited). Editing line 48 "const uint8_t CHAR_SPACING = 1;" to "const uint8_t CHAR_SPACING = 0;"
Expected Behaviour
Column width between characters = 0 (so none).
Actual Behaviour
script displays only the first character of the string ("C" in the code below)
Code Demonstrating the Issue