Mar 17, 2012 #1 A ajumt Newbie level 1 Joined Mar 17, 2012 Messages 1 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Location kerala Activity points 1,289 I am a beginner in mikroc. I was just checking to read a key from 4x2 keypad and print it on lcd. but how could i print the variable value. char key; LCD_out(2,1,key);
I am a beginner in mikroc. I was just checking to read a key from 4x2 keypad and print it on lcd. but how could i print the variable value. char key; LCD_out(2,1,key);
Mar 18, 2012 #2 Tahmid Advanced Member level 6 Joined Jun 17, 2008 Messages 4,756 Helped 1,798 Reputation 3,588 Reaction score 1,656 Trophy points 1,413 Location Berkeley, California Activity points 30,584 You need to convert the value to text and then use LCD_Out or you can convert it to characters and send them using LCD_Chr
You need to convert the value to text and then use LCD_Out or you can convert it to characters and send them using LCD_Chr
Mar 24, 2012 #3 :pH Advanced Member level 4 Joined Mar 23, 2012 Messages 113 Helped 19 Reputation 38 Reaction score 19 Trophy points 1,318 Location india Activity points 1,890 see its really simple , convert the keys hex value into an ascii using a look up table and then output it on port on which you have connected datalines of LCD and do the DATA WRITE SUBROUTINE ... thats it .... if u need further help do let me know
see its really simple , convert the keys hex value into an ascii using a look up table and then output it on port on which you have connected datalines of LCD and do the DATA WRITE SUBROUTINE ... thats it .... if u need further help do let me know
Apr 3, 2012 #4 xpress_embedo Advanced Member level 4 Joined Jul 5, 2011 Messages 1,154 Helped 161 Reputation 396 Reaction score 189 Trophy points 1,353 Location India Activity points 10,591 unsigned char temp; temp = IntToStr(key); LCD_Out(2,1,temp);
Nov 12, 2012 #5 sarathsnairpoonjar Member level 2 Joined Nov 12, 2012 Messages 50 Helped 2 Reputation 4 Reaction score 2 Trophy points 1,288 Location Cochin,Kerala,India Activity points 1,560 temp must be an array of minimum size 7