社区导航

 
查看: 491|回复: 1

[原创] MM32F031开发板评测9:显示图像

[复制链接]

1万

TA的帖子

15

TA的资源

版主

Rank: 6Rank: 6

发表于 2018-11-7 21:37:08 | 显示全部楼层 |阅读模式
驱动起来了SPI,就止不住要显摆一下。反正我这个人是这样,虽然是模拟出的SPI。那么我就显示一个吧。

我加了以下的显示函数:
  1. static void LCD_SetPos(unsigned int x0,unsigned int y0,unsigned int x1,unsigned int y1)
  2. {
  3.        Lcd_WriteIndex(0x2A);
  4.    Lcd_WriteData(x0>>8);
  5.    Lcd_WriteData(x0);
  6.    Lcd_WriteData(x1>>8);
  7.    Lcd_WriteData(x1);
  8.   
  9.    Lcd_WriteIndex(0x2B);
  10.    Lcd_WriteData(y0>>8);
  11.    Lcd_WriteData(y0);
  12.    Lcd_WriteData(y1>>8);
  13.   Lcd_WriteData(y1);
  14.          Lcd_WriteIndex(0x2c);
  15. }



  16. void showimage(const unsigned char *p)
  17. {
  18.   int i,j,k;
  19.         unsigned char picH,picL;

  20.         for(k=0;k<8;k++)
  21.         {
  22.                    for(j=0;j<6;j++)
  23.                 {       
  24.                         LCD_SetPos(40*j,40*k,40*j+39,40*k+39);
  25.                     for(i=0;i<1600;i++)
  26.                          {
  27.                                 picH=*(p+i*2+1);
  28.                                 picL=*(p+i*2);
  29.                           Lcd_WriteData_16Bit(picH<<8|picL);  
  30.                                  
  31.                                                  
  32.                          }       
  33.                  }
  34.         }
  35.                
  36. }
复制代码




而图片数组为40*40组成的。在STM32中加个const就变成C51中的CODE了。

  1. const unsigned char  gImage_ww[3200] = { /* 0X00,0X10,0X28,0X00,0X28,0X00,0X01,0X1B, */
  2. 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
  3. 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
  4. 0XFF,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B,0X51,0XF7,0XBE,0XFF,0X17,0XFE,0X65,0XFC,0X61,0XFB,
  118. 0XA2,0XFB,0XA1,0XFC,0XC1,0XFD,0X00,0XFF,0X80,0XFF,0X80,0XFF,0X80,0XFF,0X80,0XFF,
  119. 0X80,0XFF,0X80,0XFF,0X80,0XFF,0X60,0XFF,0X60,0XFF,0X60,0XFF,0X40,0XFF,0X20,0XFF,
  120. 0X00,0XFF,0XC0,0XFE,0XA0,0XFE,0X80,0XFE,0X60,0XFE,0XC0,0XFD,0XC0,0XFC,0X41,0XFC,
  121. 0XC1,0XFB,0XA2,0XFB,0X01,0XFC,0XA0,0XFC,0X40,0XFD,0XA0,0XC3,0XF4,0XD5,0XFF,0XFF,
  122. 0XFF,0XFF,0X5B,0XEF,0X24,0X9B,0X49,0XE6,0XB8,0XFF,0X92,0XFE,0X25,0XFD,0XA0,0XFC,
  123. 0X02,0XFD,0XE1,0XFD,0XE0,0XFE,0X40,0XFF,0X60,0XFF,0X40,0XFF,0X60,0XFF,0X60,0XFF,
  124. 0X60,0XFF,0X60,0XFF,0X40,0XFF,0X40,0XFF,0X40,0XFF,0X40,0XFF,0X20,0XFF,0X00,0XFF,
  125. 0XC0,0XFE,0XA0,0XFE,0X80,0XFE,0X40,0XFE,0X40,0XFE,0X00,0XFE,0X80,0XFD,0X01,0XF5,
  126. 0X41,0XFD,0X01,0XFD,0XC0,0XFC,0X40,0XFD,0X00,0XF5,0XC4,0XBB,0XFA,0XE6,0XFF,0XFF,
  127. 0XFF,0XFF,0XFF,0XFF,0X2A,0XB4,0XA0,0XD4,0XA2,0XFE,0X20,0XFE,0XE0,0XFD,0X00,0XFE,
  128. 0X80,0XFE,0X21,0XEE,0X41,0XE6,0X40,0XFF,0X40,0XFF,0X40,0XFF,0X40,0XFF,0X40,0XFF,
  129. 0X40,0XFF,0X40,0XFF,0X40,0XFF,0X20,0XFF,0X20,0XFF,0X00,0XFF,0XE0,0XFE,0XC0,0XFE,
  130. 0XA0,0XFE,0X80,0XFE,0X60,0XFE,0X40,0XFE,0X00,0XFE,0X00,0XFE,0X00,0XFE,0X40,0XCC,
  131. 0XE1,0XAB,0XC1,0XED,0X80,0XFD,0X60,0XFD,0X60,0XE4,0X29,0XB4,0XFF,0XFF,0XFF,0XFF,
  132. 0XFF,0XFF,0XFF,0XFF,0X15,0XD6,0XE0,0XBB,0X60,0XFE,0XC8,0XFE,0XC8,0XFE,0X02,0XFF,
  133. 0X60,0XDD,0X40,0XA3,0XA1,0XDD,0X40,0XFF,0X20,0XFF,0X20,0XFF,0X20,0XFF,0X20,0XFF,
  134. 0X20,0XFF,0X20,0XFF,0X20,0XFF,0X00,0XFF,0XE0,0XFE,0XC0,0XFE,0XC0,0XFE,0XA0,0XFE,
  135. 0X80,0XFE,0X60,0XFE,0X40,0XFE,0X20,0XFE,0X20,0XFE,0X20,0XFE,0X20,0XFE,0X40,0XED,
  136. 0XC0,0X9A,0X40,0XA3,0X80,0XF5,0X60,0XFD,0X60,0XBB,0XEE,0XBC,0XFF,0XFF,0XFF,0XFF,
  137. 0XFF,0XFF,0XFF,0XFF,0XDF,0XFF,0X63,0XAB,0X42,0XE5,0XB4,0XFF,0X97,0XFF,0XAA,0XF6,
  138. 0X80,0XAB,0XA0,0X92,0XA1,0XDD,0X41,0XFF,0X40,0XFF,0X60,0XFF,0X60,0XFF,0X60,0XFF,
  139. 0X60,0XFF,0X40,0XFF,0X40,0XFF,0X40,0XFF,0X20,0XFF,0X20,0XFF,0X00,0XFF,0XE0,0XFE,
  140. 0XC0,0XFE,0X80,0XFE,0X61,0XFE,0X00,0XFE,0XA0,0XED,0X20,0XE5,0X21,0XCC,0X80,0XB3,
  141. 0X00,0XBC,0XE0,0XC3,0X40,0XED,0XC0,0XEC,0X60,0X92,0X97,0XE6,0XFF,0XFF,0XFF,0XFF,
  142. 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0X0F,0XC5,0X00,0XA3,0XAA,0XF6,0X93,0XFF,0X2D,0XEE,
  143. 0X63,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F,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
  194. 0X5B,0XEF,0X98,0XDE,0X56,0XD6,0X57,0XD6,0X57,0XD6,0X56,0XD6,0X77,0XDE,0X1B,0XEF,
  195. 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
  196. 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
  197. 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
  198. 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
  199. 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
  200. 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
  201. 0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
  202. };
复制代码



别看这点程序。也是费了我一番功夫。台上一秒中台下十分钟。
下图为运行结果 :
IMG_20181107_212055.jpg

下一步真得面对硬件驱动了,到底能不能硬起来,且看下贴分解。
http://shop34182318.taobao.com/


回复

使用道具 举报

64

TA的帖子

0

TA的资源

一粒金砂(中级)

Rank: 2

发表于 7 天前 | 显示全部楼层
不错奥 直接把工程压缩发出来多好 这么看没什么感觉啊


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

  • 论坛活动 E手掌握

    扫码关注
    EEWORLD 官方微信

  • EE福利  唾手可得

    扫码关注
    EE福利 唾手可得

小黑屋|手机版|Archiver|电子工程世界 ( 京ICP证 060456 )

GMT+8, 2018-11-18 15:35 , Processed in 0.091090 second(s), 17 queries , Gzip On, MemCache On.

快速回复 返回顶部 返回列表