测试显示字符

 

/////////Start/////////   code snippet from xwh start  /////////Start/////////
    LCD_API *dis = (LCD_API *)hd;
    dis->lock(1);
    dis->clear();
    dis->setXY(0, 0);
    u8 led7_buff[4];
    sprintf(led7_buff, "%c%c%c%c", app_var.led7_char1,app_var.led7_char2,app_var.led7_char3,app_var.led7_char4);
    static u8 old_char;
    if(old_char!=app_var.led7_char1)
    {
        old_char=app_var.led7_char1;
        printfr(" %s\n",led7_buff);
    }
    dis->show_string(led7_buff);
    dis->lock(0);
    return;
/////////End  /////////   code snippet from xwh end    /////////End  /////////

 

posted @ 2024-10-21 15:53  败人两字非傲即惰  阅读(3)  评论(0编辑  收藏  举报