新聞中心

        EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 1602自定義字符顯示攝氏度符號

        1602自定義字符顯示攝氏度符號

        作者: 時(shí)間:2016-11-30 來源:網(wǎng)絡(luò) 收藏

        void writecmd(uchar cmd)
        {
        wait();
        RS=0;
        RW=0;
        __no_operation();
        DATA=cmd;
        __no_operation();
        EN=1;
        __no_operation();
        __no_operation();
        EN=0;
        }
        void writedata(uchar data)
        {
        wait();
        RS=1;
        RW=0;
        __no_operation();
        DATA=data;
        __no_operation();
        EN=1;
        __no_operation();
        __no_operation();
        EN=0;
        }


        void displayonechar(uchar x,uchar y,uchar dda)
        {
        y&=0x01;
        x&=0x0f;
        if(y)x|=0x40;
        x|=0x80;
        writecmd(x);
        writedata(dda);
        }
        void displaychar(uchar x,uchar y,uchar *p)
        {
        y&=0x01;
        x&=0x0f;
        while(*p!= 主站蜘蛛池模板: 山阳县| 高要市| 镇康县| 嘉定区| 房山区| 华亭县| 定南县| 永德县| 兴仁县| 蒙自县| 色达县| 高邮市| 云浮市| 黑水县| 临泽县| 景泰县| 房山区| 关岭| 天气| 广汉市| 陆河县| 襄城县| 汪清县| 阜新| 雷州市| 阿拉善左旗| 玉环县| 汶川县| 宝应县| 新兴县| 巴林右旗| 桑日县| 页游| 锦州市| 新邵县| 米林县| 定边县| 古交市| 蒙城县| 乳山市| 台州市|