| ??? 04/14/06 05:18 Read: times |
#114281 - I wrote this when I must just learning Responding to: ???'s previous message |
I wrote this is really long time ago:
void WriteLCDVal(unsigned int val){ unsigned int lp; unsigned char sp; sp=0; if(val==0)WriteData('0'); for (lp=10000;lp>0 ;lp=lp/10) { if(sp==0)sp=(val/lp); if(sp>0) WriteData((val/lp)+48); val%=lp; } } It could use some optimization, I am sure. ;) |
| Topic | Author | Date |
| neail's alagothram | 01/01/70 00:00 | |
| OK | 01/01/70 00:00 | |
| ASCII Coding | 01/01/70 00:00 | |
| Please make it descriptive | 01/01/70 00:00 | |
| I wrote this when I must just learning | 01/01/70 00:00 | |
| THERE SOME PROBLEM | 01/01/70 00:00 | |
| DON'T SHOUT! | 01/01/70 00:00 | |
soory for | 01/01/70 00:00 |



