资源描述:
《oled12864串行动画程序.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、#include"stm32f10x_lib.h"#definesclhGPIO_SetBits(GPIOA,GPIO_Pin_0)//串行的片选信号#definescllGPIO_ResetBits(GPIOA,GPIO_Pin_0)#definesdahGPIO_SetBits(GPIOA,GPIO_Pin_1)//串行的同步时钟#definesdalGPIO_ResetBits(GPIOA,GPIO_Pin_1)#definersthGPIO_SetBits(GPIOA,GPIO_Pin_2)//串行的数据口#defi
2、nerstlGPIO_ResetBits(GPIOA,GPIO_Pin_2)#definedchGPIO_SetBits(GPIOA,GPIO_Pin_3)//PSB并行选择端口#definedclGPIO_ResetBits(GPIOA,GPIO_Pin_3)//PSB串行选择端口//#definevohGPIO_SetBits(GPIOB,GPIO_Pin_3)//LCD驱动电压输入端GPIO_InitTypeDefGPIO_InitStructure;u8BMP1[]=//数据表{0x00,0x00,0x00,0x00
3、,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
4、,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0xC0,0xC0,0xE0,0xE0,0xE0,0xF0,0xF0,0xF0,0xF8,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0x78,0xF0,0xF0,0xF0,0xE0,0xE0,0xE0,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
5、,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
6、,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xF0,0xFC,0xFE,0xFE,0x7F,0x3F,0x0F,0x07,0x07,0x03,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
7、,0x00,0x00,0x00,0x3F,0x7F,0x7F,0x7F,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xE0,0xE0,0xE0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
8、,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00