void delay(unsigned int ms){ unsigned short i; unsigned char j; for(i=0;i<ms;i++) {for(j=0;j<200;j++);for(j=0;j<105;j++);}}