garg29
Advanced Member level 1
lcd using pointers
I am trying to combine some charaters to show on lcd using pointers but it's showing me error...."only lvalues may be assigned to or modified"
I know i can do this with other simpler methods but i want to do this by using pointers. Actually I'm trying to learn pointers.
I'm doing it on 16F688 with Hitech Picc compiler.
Thanks
Regards
I am trying to combine some charaters to show on lcd using pointers but it's showing me error...."only lvalues may be assigned to or modified"
Code:
unsigned char buf[6];
lcd_clear();
lcd_goto(0x80);
*buf ='1';
*buf++ ='2';
*buf++ ='.';
*buf++ ='4';
*buf++ ='a';
lcd_puts(buf);
I know i can do this with other simpler methods but i want to do this by using pointers. Actually I'm trying to learn pointers.
I'm doing it on 16F688 with Hitech Picc compiler.
Thanks
Regards