Code:
void demtram(unsigned int bd,kt, unsigned char step) { for(DEM=bd;DEM<kt+1;DEM=DEM+step) { hienthi(DEM); } } //**********hien thi *** void hienthi(unsigned int DEMT) { unsigned int DONVI,CHUC,TRAM; DONVI=DEMT%10; DEMT=DEMT/10; CHUC=DEMT%10; TRAM=DEMT/10; P0=MA7D[TRAM]; P2=MA7D[CHUC]; P3=MA7D[DONVI]; delay(25000); }
Cảm ơn mọi người nhiều
Comment