资源描述:
《stm32驱动12864液晶屏》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、为您提供专业的显示解决方案www.hotlcd.comSTM32驱动12864液晶屏#include"stm32f10x_lib.h" #defineuintunsignedint #defineucharunsignedchar #defineRSH GPIO_SetBits(GPIOA,GPIO_Pin_0) #defineRSL GPIO_ResetBits(GPIOA,GPIO_Pin_0) #defineRWH GPIO_SetBits(GPIOA,GPIO_Pin_1) #defineRWL GPIO_ResetBits(GPIOA
2、,GPIO_Pin_1) #defineENH GPIO_SetBits(GPIOA,GPIO_Pin_2) #defineENL GPIO_ResetBits(GPIOA,GPIO_Pin_2) #defineCS1H GPIO_SetBits(GPIOA,GPIO_Pin_3) #defineCS1L GPIO_ResetBits(GPIOA,GPIO_Pin_3) #defineCS2H GPIO_SetBits(GPIOA,GPIO_Pin_4) #defineCS2L GPIO_ResetBits(GPIOA,GPIO_Pin_4)
3、voidRCC_Configuration(void); voidNVIC_Configuration(void); voidGPIO_Configuration(void);voidDelay();uchar table[][16]={ /*-- 文字: 我 --*/ /*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/ 0x20,0x20,0x22,0x22,0xFE,0x21,0x21,0x20,0x20,0xFF,0x20,0x22,0xAC,0x20,0x20,0x00, 0x04,0x04,0x42,0x82
4、,0x7F,0x01,0x01,0x10,0x10,0x08,0x07,0x1A,0x21,0x40,0xF0,0x00,/*-- 文字: 爸 --*//*-- 文字: 一 --*/ /*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/ 0x00,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0xC0,0x80,0x00, 为您提供专业的显示解决方案www.hotlcd.com0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x
5、00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*-- 文字: 天 --*/ /*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/ 0x00,0x40,0x42,0x42,0x42,0x42,0x42,0xFE,0x42,0x42,0x42,0x42,0x42,0x42,0x40,0x00, 0x00,0x80,0x40,0x20,0x10,0x08,0x06,0x01,0x02,0x04,0x08,0x10,0x30,0x60,0x20,0x00,/*-- 文字: 的 --*/ /
6、*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/ 0x00,0xF8,0x8C,0x8B,0x88,0xF8,0x40,0x30,0x8F,0x08,0x08,0x08,0x08,0xF8,0x00,0x00, 0x00,0x7F,0x10,0x10,0x10,0x3F,0x00,0x00,0x00,0x03,0x26,0x40,0x20,0x1F,0x00,0x00,/*-- 文字: 成 --*/ /*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/ 0x00,0x00,0xF8,0x48,0x4
7、8,0x48,0xC8,0x08,0xFF,0x08,0x09,0x0A,0xC8,0x88,0x08,0x00, 0x40,0x30,0x0F,0x00,0x08,0x50,0x4F,0x20,0x10,0x0B,0x0C,0x12,0x21,0x40,0xF0,0x00,/*-- 文字: 果 --*/ /*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/ 0x00,0x00,0x00,0x3E,0x2A,0x2A,0x2A,0xFE,0x2A,0x2A,0x2A,0x3E,0x00,0x00,0x00,0x00, 0x
8、21,0x21,0x11,0x11,0x09,0x05,0x03,0xFF,0x03,0x05,0x09,0x09,0x11,0x31,0x11,0x