need help in the coding

Status
Not open for further replies.

sagd

Newbie level 4
Joined
Mar 21, 2012
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Mumbai
Activity points
1,322
I am uploading my code.. help me plz...
 

Attachments

  • code.doc
    26 KB · Views: 73

What are the problems you are facing?

---------- Post added at 00:43 ---------- Previous post was at 00:29 ----------

Are you using mikroc pro? At a quick glance , there are some problems in the display part.
 

What are the problems you are facing?

---------- Post added at 00:43 ---------- Previous post was at 00:29 ----------

Are you using mikroc pro? At a quick glance , there are some problems in the display part.

hey I am using mikroc pro... I am not able to get my display part. can you help??
 

The problems are :-
Lcd_Out(1,1,txt1);
Will print
"Baseline is" starting from 1st line char position 1 to char position 11.(count that).
and the following line:-
LCD_Out(1,3,baseline);
I see what you want to do.
But do as follows:-
replace "temp" by "baseline" and change accordingly for no of digits.

Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
ones=temp%10;
temp=temp/10;
tens=temp%10;
temp=temp/10;
hundreds=temp%10;
thous=temp/10;
Lcd_Chr(1,3,thous+48);
Lcd_Chr(1,4,hundreds+48);
Lcd_Chr(1,5,'.');
Lcd_Chr(1,6,tens+48);
Lcd_Chr(1,7,ones+48);


Remember to print digits of "baseline" after 11th char position
:-D
For mikroc pro.

If you feel that I helped you , there is a "helped me" button

---------- Post added at 00:36 ---------- Previous post was at 00:33 ----------

NB - For character use single quote like 'a' or '.' etc
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…