標(biāo)題: 單片機(jī)+nokia5110顯示數(shù)字漢字源程序 [打印本頁(yè)]

作者: marchmaqi    時(shí)間: 2020-9-30 15:48
標(biāo)題: 單片機(jī)+nokia5110顯示數(shù)字漢字源程序
nokia5110顯示數(shù)字/漢字程序
必須使用proteus8.8以上打開。
低版本沒有nokia5110

有需要的可以下載運(yùn)用
仿真原理圖如下(proteus仿真工程文件可到本帖附件中下載)


單片機(jī)源程序如下:
  1. #include<reg52.h>
  2. #include<nokia5110.h>
  3. #define uint unsigned int
  4. #define uchar unsigned char
  5.         




  6. //////////////////////////////////////////////////////////////////////////////////////////////////

  7.    void main(void)
  8. {
  9.         initNokia5110();                         /* NOkia 5110 初始化   */
  10.         clearNokia5110();                         /* 清除屏幕 整屏清空 */
  11.         //Display_char(1,2,"xxxxxxxxxxxx");   /* 寫字符 x 設(shè)置顯示字符的X位置 ; y 設(shè)置顯示字符的Y位置   *s 顯示字符的首地址 */
  12.         //Display_char(10,4,"NOKIA5510");   /* 寫字符 x 設(shè)置顯示字符的X位置 ; y 設(shè)置顯示字符的Y位置   *s 顯示字符的首地址 */
  13.         //Display_num(0,0,9);   // 寫數(shù)字
  14.         Display_hz(0,0,zi);//Display_hz(x,y,zi); x橫坐標(biāo),y縱坐標(biāo),字模  修改nokia5110中zi[]的數(shù)據(jù)

  15. while(1);
  16. }
復(fù)制代碼

所有資料51hei提供下載:
spi nokia5110顯示.rar (340.45 KB, 下載次數(shù): 49)



作者: jemery1030    時(shí)間: 2020-10-2 20:54
剛好有5110,再找時(shí)間測(cè)試,先謝謝你提供的碼源。




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1