这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » DIY与开源设计 » 电子DIY » 我的ARM DIY完整工程

共359条 19/36 |‹ 17 18 19 20 21 22 ›| 跳转至
菜鸟
2013-09-26 10:34:41     打赏
181楼
`````````````````````````````````````

菜鸟
2013-09-28 14:00:57     打赏
182楼

看看!!


菜鸟
2013-09-30 22:46:16     打赏
183楼



菜鸟
2013-10-03 15:29:54     打赏
184楼

 学习学习



助工
2013-10-07 11:34:15     打赏
185楼
顶顶顶顶顶顶

助工
2013-10-14 00:01:04     打赏
186楼
继续跟帖学习

菜鸟
2013-10-16 16:01:56     打赏
187楼

谢谢,学习了


菜鸟
2013-10-20 10:00:37     打赏
188楼
看看!!!!

菜鸟
2013-10-30 17:34:18     打赏
189楼
看看啦,学习下

工程师
2013-10-31 17:28:06     打赏
190楼

这段显示图片的程序看不明白,能帮忙看看分析一下吗?

void LCD_WriteBMP(uint32_t BmpAddress)

{
  uint32_t index = 0, size = 0;
  /* Read bitmap size */
  size = *(__IO uint16_t *) (BmpAddress + 2);
  size |= (*(__IO uint16_t *) (BmpAddress + 4)) << 16;
  /* Get bitmap data address offset */
  index = *(__IO uint16_t *) (BmpAddress + 10);
  index |= (*(__IO uint16_t *) (BmpAddress + 12)) << 16;
  size = (size - index)/2;
  BmpAddress += index;
  /* Set GRAM write direction and BGR = 1 */
  /* I/D=00 (Horizontal : decrement, Vertical : decrement) */
  /* AM=1 (address is updated in vertical writing direction) */
  LCD_WriteReg(LCD_REG_3, 0x1008);
 
  LCD_WriteRAM_Prepare();
 
  for(index = 0; index < size; index++)
  {
    LCD_WriteRAM(*(__IO uint16_t *)BmpAddress);
    BmpAddress += 2;
  }
 
  /* Set GRAM write direction and BGR = 1 */
  /* I/D = 01 (Horizontal : increment, Vertical : decrement) */
  /* AM = 1 (address is updated in vertical writing direction) */
  LCD_WriteReg(LCD_REG_3, 0x1018);
}

共359条 19/36 |‹ 17 18 19 20 21 22 ›| 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]