|
本帖最后由 胤幻1988 于 2018-10-24 08:58 编辑 最近闲来无事,翻出来2年前买的LCD12864模块(芯片ST7565).这个模块引脚分别为: LEDA /VSS/ VDD/ SI/ SCL/ AO/ RSY /CS.用模拟SPI的方式写了程序。在原子的开发板上实验。
程序如下:
STM32F103_LCD12864(ST7565)(ååæ¿)-OK.rar
(2.17 MB, 下载次数: 482)
|
微信公众号
手机版
Build target 'USART'
compiling main.c...
system_stm32f10x.h(53): error: #20: identifier "uint32_t" is undefined
extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
main.c(12): error: #29: expected an expression
{0x00,0x03,0x00,0x01,0x10,0x01,0x10,0x01,0x1F,0xFE,0x10,0x00,0x10,0x00,0x00,0x00},/*J*/0*/
main.c(13): error: #29: expected an expression
{0x00,0x00,0x00,0x98,0x01,0x24,0x01,0x24,0x01,0x48,0x00,0xFC,0x00,0x04,0x00,0x00},/*a*/1*/
main.c(14): error: #29: expected an expression
{0x00,0x00,0x00,0x70,0x00,0x88,0x01,0x04,0x01,0x04,0x01,0x04,0x00,0x88,0x00,0x00},/*c*/2*/
main.c(15): error: #29: expected an expression
{0x08,0x04,0x0F,0xFC,0x00,0x24,0x00,0x60,0x01,0x94,0x01,0x0C,0x01,0x04,0x00,0x00},/*k*/3*/
main.c(16): error: #29: expected an expression
{0x00,0x00,0x00,0xCC,0x01,0x24,0x01,0x24,0x01,0x24,0x01,0x24,0x01,0x98,0x00,0x00},/*s*/4*/
main.c(17): error: #29: expected an expression
{0x01,0x04,0x01,0xFC,0x00,0x84,0x01,0x00,0x01,0x00,0x01,0x04,0x00,0xFC,0x00,0x04},/*n*/5*/
main.c(18): error: #29: expected an expression
{0x07,0xF0,0x08,0x08,0x10,0x14,0x10,0x14,0x10,0x0C,0x08,0x0A,0x07,0xF2,0x00,0x00},/*Q*/6*/
main.c(19): error: #29: expected an expression
{0x00,0x00,0x01,0x04,0x19,0x04,0x19,0xFC,0x00,0x04,0x00,0x04,0x00,0x00,0x00,0x00},/*i*/7*/
main.c(20): error: #29: expected an expression
{0x01,0x00,0x01,0xF8,0x00,0x04,0x00,0x04,0x00,0x04,0x01,0x08,0x01,0xFC,0x00,0x04},/*u*/8*/
main.c(12): error: #146: too many initializer values
{0x00,0x03,0x00,0x01,0x10,0x01,0x10,0x01,0x1F,0xFE,0x10,0x00,0x10,0x00,0x00,0x00},/*J*/0*/
main.c(36): warning: #177-D: variable "t" was declared but never referenced
u16 t;
main.c(37): warning: #177-D: variable "len" was declared but never referenced
u16 len;
main.c(38): warning: #177-D: variable "times" was declared but never referenced
u16 times=0;
main.c: 3 warnings, 11 errors
"..\OBJ\USART.axf" - 11 Error(s), 3 Warning(s).
Target not created.
Build Time Elapsed: 00:00:01