Hi there all I'm having problems with data types and hoped someone here could set me straight. I've designed my own LCD driver that uses a shift register to allow for only 3 lines to be connected to the pic. I've provided below a sample of what I currently have that works and an example of what i'm trying to do that at this point does not work. Any help would be welcome. Thanks!
Code:
int8 type1;
type1 = 1;
++type1; // type1 should now equal 2
send_lcd("send this"); /// This line works fine
send_lcd(type1); // this outputs garbage on the screen, I need it to output the value of type1
Thank you very much. I hunted before I posted and came up with several others but they all were indicating that I should direct the output into another varible instead of directing it directly into the sub routine. Now that i've done that it works great.. Thanks again.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum