| ??? 12/18/04 21:05 Read: times |
#83437 - re: code Responding to: ???'s previous message |
That's better, but you've posted the code without any indentation; eg, void msDelay(tInt msec)
{
tInt cntr_1, cntr_2;
for (cntr_1 = 0; cntr_1 <= msec; ++cntr_1 )
{
for ( cntr_2 = 0; cntr_2 <= 5000; ++cntr_2);
}
}would normally be laid out something like this:void msDelay(tInt msec)
{
tInt cntr_1, cntr_2;
for (cntr_1 = 0; cntr_1 <= msec; ++cntr_1 )
{
for ( cntr_2 = 0; cntr_2 <= 5000; ++cntr_2);
}
}where the indentation indicates which lines are "inside" the blocks formed buy other lines.
Have you verified that this delay routine does actually give the correct delay? |
| Topic | Author | Date |
| C Code for LCD | 01/01/70 00:00 | |
| code | 01/01/70 00:00 | |
| Changes as comments | 01/01/70 00:00 | |
| re: code | 01/01/70 00:00 | |
| debugging? | 01/01/70 00:00 | |
| Points to check | 01/01/70 00:00 | |
| solution | 01/01/70 00:00 | |
| lcd display problem | 01/01/70 00:00 | |
| how to help when not knowing with what | 01/01/70 00:00 | |
| lcd display problem | 01/01/70 00:00 | |
| Contrast Problem. | 01/01/70 00:00 | |
| CONTRAST pot ? | 01/01/70 00:00 | |
lcd display problem ....solved | 01/01/70 00:00 |



