void lcd_clear_handle(void) { //clear_secterScreen(0,4,0,LCD_LOG_COLUME_START);//clear_AllScreen(); MotorCtr(0,0);//close Motor display_check_to_clear_Screen(); free_display_buff(); lcd_power_control(LCD_CLOSE); Set_lastDisplayTag(DISP_TAG_NULL); clr_cos_mode(); }
void display_page(unsigned char page_num) { unsigned int addr_off = 0; unsigned char display_buff[250]; if (g_lcdMultiPage.page_num == 0) return; if (page_num >= g_lcdMultiPage.page_num) return; addr_off = get_display_addr_off(page_num); lcd_power_control(LCD_OPEN); lcd_power_control(LCD_OPEN); get_page_display_data(display_buff, addr_off, g_lcdMultiPage.page[page_num].end_point); display_check_to_clear_Screen(); display_gb18030_string(display_buff, g_lcdMultiPage.page[page_num].end_point, 0, 0); Set_lastDisplayTag(DISP_TAG_COS_DATA); return; }
static void USB_check(void) { static uint8_t USB_display_flag=0; if(USB_detect()==1) { g_charge_status = 1; #if DEBUG_UART_EN // DbgPrintf("USB_detect\r\n"); #endif #if ENABLE_COS if(Protocol_check_BT_connected()==1) { simple_uart_init(UART_POWEROFF_BT_DELAY); } else { simple_uart_init(UART_POWEROFF_DELAY); } #endif #if ENABLE_DISPLAY if(Display_idle_logo()==TRUE) USB_display_flag=1; #endif } else { g_charge_status = 0; #if DEBUG_UART_EN //DbgPrintf("USB_not detect\r\n"); #endif #if ENABLE_DISPLAY if(USB_display_flag==1) { USB_display_flag=0; lcd_power_control(LCD_CLOSE); } #endif #if ENABLE_COS etCheck_reset();//when change MAC_ADDR,will reset etCheck_to_PoweroffCOS(); #endif } }
void s6d04d1_smd_lcd_power(int on) { #if defined(__LCD_DEBUG__) printk("[LCD] s6d04d1_smd_lcd_power\n"); #endif if (!ssp) ssp = ssp_lcd_init(); //if(on != lcdPanelOnOff_status) //pps-a { lcdPanelOnOff_status = on; if (on) { #if defined(__LCD_DEBUG__) printk("[LCD] LCD ON\n"); #endif lcd_power_control(1); s6d04d1_smd_lcd_panel_reset(); mdelay(10); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_passwd1)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_passwd2)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_disctl)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_pwrctl)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_vcmctll)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_pixel_format)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_tearing_lineon)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_memory_data)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_column_addset)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_page_addset)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_srcctl)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_ifctl)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_panelctl)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_gammasel1)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_pgammactl1)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_gammasel2)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_pgammactl2)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_gammasel3)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_pgammactl3)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_slpout)); mdelay(120); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_dison)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_wrctrld_on)); ssp_send_cmd_para(ARRAY_AND_SIZE(brightness01)); mdelay(40); } else { #if defined(__LCD_DEBUG__) printk("[LCD] LCD OFF\n"); #endif ssp_send_cmd_para(ARRAY_AND_SIZE(brightness_off)); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_disoff)); mdelay(40); ssp_send_cmd_para(ARRAY_AND_SIZE(smd_slpin)); mdelay(120); setgpio20(0); mdelay(10); lcd_power_control(0); } } }