C
Craig
This probably has a really simple answer but I have yet to find it using
google etc.
I am using c to write a program for a pic and for the most part I am fairly
on top of it.
The problem I do have is this,
I have an unsigned char variable that is incremented at various points
throughout the program and so could hold any value between 0 - 255. I can't
figure out how to write this value to an LCD.
I can write individual characters to the lcd no problem but I assume that if
the value contained in the variable was eg 123, I would have to pass the
characters '1', '2' and '3' to the lcd, or their ascii code.
Any help would be greatly appreciated.
google etc.
I am using c to write a program for a pic and for the most part I am fairly
on top of it.
The problem I do have is this,
I have an unsigned char variable that is incremented at various points
throughout the program and so could hold any value between 0 - 255. I can't
figure out how to write this value to an LCD.
I can write individual characters to the lcd no problem but I assume that if
the value contained in the variable was eg 123, I would have to pass the
characters '1', '2' and '3' to the lcd, or their ascii code.
Any help would be greatly appreciated.