I'm sending text to an LCD display, in the form of a string right now. I'm having some trouble getting a format that works for all inputs.
The declarations and calls for the variable look like this...
void DisplayString(unsigned char row, unsigned char column, const char * string)
{
.
.
}
DisplayString(0, 0, "Hello World!");
This works just fine.
Now, I have some custom characters that get mapped to the LCD from 0x00 to 0x07. For example, the character "ó"(in dot matrix form) is mapped to 0x01. I'm able to display them just fine, but I've had to change the prototype for it to work. (from 'const char *' to just 'char')
For example, this works:
void DisplayStringTwo(unsigned char row, unsigned char column, char string)
{
.
.
}
DisplayStringTwo(0, 4, 0x01);
Is there a way to include the hex character (0x01) within the string to display it all at once from one function? Such as, 'Helló World!'.
I've tried a few methods which haven't worked, such as:
void DisplayString(unsigned char row, unsigned char column, const char * string)
{
.
.
}
DisplayString(0, 0, "Hell\x01 World!");
Any suggestions are highly appreciated.