I have a table that defines the appearance of characters on a 5x7-dot display. Something like:
extern UINT8 symbols[][5] = { {0x0,0x0,0x0,0x0,0x0}, {0x0,0x0,0x5F,0x0,0x0}, {0x0,0x7,0x0,0x7,0x0}, {0x14,0x7F,0x14,0x7F,0x14},
The leading part of the table corresponds to the ASCII table, followed by a set of special characters, for example. arrow or reference mark. For reference to them, I have a list of macros:
#define SYMBOL_LEFT_ARROW 120
Now I need to say something like (will not compile):
const char * const message = "Next" + SYMBOL_RIGHT_ARROW;
Question: How do I turn SYMBOL_RIGHT_ARROW into "\ x79" or an entire string into "Next\x79" COMPUTER TIME so that I can have a string in R / O?
C compiler Freescale HC08.
c c-preprocessor
THX-1138
source share