freeidea
Member level 1
- Joined
- May 19, 2011
- Messages
- 36
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,288
- Activity points
- 1,920
i need to display 3 digit in lcd,i ask a example of calculation
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
void WriteNum3dec( unsigned charnum )
{
unsigned char dig;
dig = num / 100 + '0';
if ( ( dig == 0 ) && ( ISWHITE ) ) SayChar( WHITE );
else SayChar( dig );
dig = (num % 100) / 10 + '0';
SayChar( dig );
dig = (num % 10) + '0';
SayChar( dig );