本帖最后由 geek1024 于 2016-5-23 17:22 编辑
在去年写过的一篇帖子:STM32f103实战之驱动32*32 RGB点阵 中介绍了下RGB 点阵屏显示的方法。但是在上一篇帖子中明明标题是RGB点阵,可是为嘛没看到有RGB显示的方法,因为方法在本文中经行补充。
此次项目我是参考了很多大大们写过的资料后,用了不到2个月时间重写程序,包括底层驱动,上层画图库,显示ASCII字符,显示中文字符等函数。
RGB点阵屏接口是标准08接口:
接口连线(部分定义,详细见工程matrix_config.h中定义)
#define MTX_PORT
#define MTX_PORTc GPIOC
#define MTX_RCCPB RCC_APB2Periph_GPIOB
#define MTX_PR0 GPIO_Pin_0 //GPIOC
#define MTX_PG0 GPIO_Pin_11 //GPIOB
#define MTX_PB0 GPIO_Pin_1 //GPIOC
#define MTX_PR1 GPIO_Pin_2 //GPIOC
#define MTX_PG1 GPIO_Pin_12 //GPIOB
#define MTX_PB1 GPIO_Pin_3 //GPIOC
#define MTX_PA GPIO_Pin_4 //GPIOC
#define MTX_PB GPIO_Pin_6 //GPIOC
#define MTX_PC GPIO_Pin_5 //GPIO