|
一套基于C51的12864顯示屏顯示漢字的程序
0.png (68.16 KB, 下載次數(shù): 143)
下載附件
2017-5-16 18:07 上傳
單片機(jī)源程序如下:
- #include<reg51.h>
- #include"st7565.h"
- //---聲明一個(gè)全局變量---//
- void Delay10ms(unsigned int c);
- /*******************************************************************************
- * 函 數(shù) 名 : main
- * 函數(shù)功能 : 主函數(shù)
- * 輸 入 : 無
- * 輸 出 : 無
- *******************************************************************************/
- void main()
- {
- uchar i = 128;
- Lcd12864_Init();
- Lcd12864_ClearScreen();
-
- while (1)
- {
- for (i=0; i<8; i += 2)
- {
- Lcd12864_ClearScreen();
- //--由于這個(gè)函數(shù)顯示方向正好相反--//
- Lcd12864_Write16CnCHAR(0, i, "司公限有技科中普");
- Delay10ms(100);
- }
-
- }
- }
- /*******************************************************************************
- * 函 數(shù) 名 : Delay10ms
- * 函數(shù)功能 : 延時(shí)函數(shù),延時(shí)10ms
- * 輸 入 : 無
- * 輸 出 : 無
- *******************************************************************************/
- ……………………
- …………限于本文篇幅 余下代碼請(qǐng)從51黑下載附件…………
復(fù)制代碼
所有資料51hei提供下載:
12864顯示漢字.rar
(22.36 KB, 下載次數(shù): 40)
2017-5-16 17:48 上傳
點(diǎn)擊文件名下載附件
下載積分: 黑幣 -5
|
評(píng)分
-
查看全部評(píng)分
|