asking
Full Member level 5
- Joined
- Sep 21, 2010
- Messages
- 279
- Helped
- 6
- Reputation
- 12
- Reaction score
- 6
- Trophy points
- 1,298
- Activity points
- 3,377
Hello,
I have some reading 3 digit value from ADC and the value shown is on LCD in the form of Characters.. now i wish to put some condition on that 3 digit value like 078 i want this value to be in int...how to convert value shown on lcd to int so i can put condition on it..to do some action...
i m reading Data from LM35 as temperature measurement. But directly i cannot use if lcd > 100 so i need to convert it to int value then i can put condition...... please advice...
I have some reading 3 digit value from ADC and the value shown is on LCD in the form of Characters.. now i wish to put some condition on that 3 digit value like 078 i want this value to be in int...how to convert value shown on lcd to int so i can put condition on it..to do some action...
i m reading Data from LM35 as temperature measurement. But directly i cannot use if lcd > 100 so i need to convert it to int value then i can put condition...... please advice...
Code:
a = t%10;
lcd[2] = a + '0';
t = t/10;
a = t%10;
lcd[1] = a + '0';
t = t/10;
a = t%10;
lcd[0] = a + '0';
Lcd_out(1,12,lcd);