|
本帖最后由 胤幻1988 于 2018-10-24 08:58 编辑 最近闲来无事,翻出来2年前买的LCD12864模块(芯片ST7565).这个模块引脚分别为: LEDA /VSS/ VDD/ SI/ SCL/ AO/ RSY /CS.用模拟SPI的方式写了程序。在原子的开发板上实验。
程序如下:. o( V% t# _' W4 S0 M5 o7 s7 d
STM32F103_LCD12864(ST7565)(ååæ¿)-OK.rar
(2.17 MB, 下载次数: 482)
|
微信公众号
手机版
Build target 'USART': X+ B/ W0 y' s, q% z; |
compiling main.c...( A1 m: i6 t; t9 K
system_stm32f10x.h(53): error: #20: identifier "uint32_t" is undefined r% }: M9 w$ n: n2 f, l
extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */9 e F! u% M4 s" Y; j
main.c(12): error: #29: expected an expression5 M% [8 F) x7 P! R( C, \! }
{0x00,0x03,0x00,0x01,0x10,0x01,0x10,0x01,0x1F,0xFE,0x10,0x00,0x10,0x00,0x00,0x00},/*J*/0*/, J- m7 F3 U$ d1 f- \
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 expression9 ^2 @" Z1 j1 q4 h) c& d* Z
{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*/5 ?. g# i5 ]' Q/ N9 c- I1 d% I
main.c(19): error: #29: expected an expression5 b6 w* e$ M4 b
{0x00,0x00,0x01,0x04,0x19,0x04,0x19,0xFC,0x00,0x04,0x00,0x04,0x00,0x00,0x00,0x00},/*i*/7*/0 R" N2 X7 F5 I3 _
main.c(20): error: #29: expected an expression3 _# z5 D' X) ~: G) ]- D
{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( H$ I1 t7 `: e
u16 len; 5 y5 j5 Q( g' w; P( E
main.c(38): warning: #177-D: variable "times" was declared but never referenced
u16 times=0;! c. U- x4 A3 w- z4 J" X
main.c: 3 warnings, 11 errors
"..\OBJ\USART.axf" - 11 Error(s), 3 Warning(s).
Target not created.
Build Time Elapsed: 00:00:01