#include #include #include "lcd.h" #include "pwm.h" #include "i2c.h" #include "IRIN.h" unsigned char PuZh[]=" Pechin Science "; extern uint journey; extern uint money; extern uchar sudu; unsigned int b12; unsigned int c12; unsigned int b123; unsigned int c123; extern unsigned char pwm_left; unsigned char code ASCII[15] = {'0','1','2','3','4','5','6','7','8','9','.','-','M'}; void delayms(unsigned int ms) { unsigned char i=100,j; for(;ms;ms--) { while(--i) { j=10; while(--j); } } } void main(void) { InitLcd1602(); IRIN_Init(); pwm_left=10; b12=At24c02Read(1); c12=At24c02Read(8); money=At24c02Read(5); journey = (b12<<8)|c12; while(1) { run(); display(); keypros(); } }