| ??? 02/23/08 10:11 Read: times |
#151322 - Unreadable code! Responding to: ???'s previous message |
I'm afraid your code is unreadable!
Did you check it in the 'Preview' before posting? At a guess, I'd say you're using TABs for spacing - don't do it, because this is what you will get! See: http://www.8052.com/faqs.phtml?FAQ=120199 Use spaces instead - with an increment of just 3 or 4 spaces for each level of indentation. For exaple:
void code phrase1()
{
static unsigned char string1[]="CALIBRATE "; // You must ensure that there are 10 chars INCLUDING WHITE SPACE
// or else @ will show up on display
// and phrase must be written in UPPERCASE LETTERS
// or else garbage will show up on display!!!!
unsigned char z;
for (z=0;z<=9;z++)
{
P0 = (string1[z] & 0xBF); // Parse the data array for 10 array elements
write_enable(); // Must strobe the write pin on the rising edge
// to latch char into memory position
// for each char in array
}
}
|



