📄 gz60_sleep.h
字号:
void ready_sleep(void){
//Clr_LCD(); //清LCD
motor_go0(); //指针回零
at24_wr_all(); //保存里程总计和小计
//init_led(); //复位指示灯
//sleep_mc33389(); //389休眠
//sleep_mc33993(); //993休眠
PTA=0x00;
PTF=0x00;
RST_6606=0; //仪表马达复位
RST=0; //大液晶复位
PTE=0x00;
PTG=0x00; //LCD
PTC_PTC2=0; //pcfclk
PTC_PTC3=0; //pcfdat
PTD_PTD6=0; //at24clk
PTD_PTD7=0; //at24dat 小LCD
PTB_PTB5=0; //hc595_din
PTB_PTB6=0; //hc595_sclk
PTB_PTB7=0; //hc595_lclk 595 LED
back_light_off; //关背光
BAT_EN=1; //关电源
LED=1; //关工作指示灯
ADSCR=0x1f; //关AD
}
void wakeup(void){
BAT_EN=0; //电源开
init_adc(); //AD
init_port(); //端口
delay(160); //>150
RST_6606=1; //马达使能
RST=1; //LCD使能
init_led(); //LED
init_lcd(); //lcd
init_mil(); //里程
init_pcf8576(); //使能工作
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -