I am following this tutorial to interface GLCD with pic18f4550 https://sites.google.com/site/coolembeddedlaboratory/home/pic18f4550/tutorial-list/graphical-lcd
everything is ok
but until it's said
As this tutorial is based on PIC18F4550 and PORTB is also used, so please make sure that Analog To Digital Converter is disabled in Configuration Setting of PIC18F4550, otherwise the program will compile without error, but nothing will appear on Graphical Lcd.
Hi, I am programming in pic18f4550 using mikroc pro.
for example let's say I have temperature sensor. Receiving the data is succeed.
Now I want to display the result in Graphical LCD jhd12864e.
I searched in GLCD library but there is no direct command to display Variables like this command
Code:
LCD_Chr(1, 15, 48 + (Temp % 10));
in 16x2 lcd.
I found methods to convert these values into string. but the string is 7 bit size and I want to display the temperture only in 2 digits XX ْC.
a charactere is a byte ..8 bits
an empty string=1 byte set to zero value
a not empty string is one char minimum + 0 value (string terminator) .. minimum length 2 bytes
in the case of displayng on LCD,we can use 2 individual charactere
As has been pointed out before, the general case is for the characters of a string to be 8-bit.
Do you mean that the string is 8 BYTES long with a leading spaces? If so, then you need to learn some of the common string handling functions so (in this case) find the index of the first character that is not a space (perhaps using strrchr) and use that as the start of the string passed to the display function.
Susan