..\ST7735S\st7735.c(283): error: #268: declaration may not appear after executable statement in block
uint8_t data[] = { 0x00, x0, 0x00, x1};
..\ST7735S\st7735.c(283): error: #28: expression must have a constant value
uint8_t data[] = { 0x00, x0, 0x00, x1};
..\ST7735S\st7735.c(283): error: #28: expression must have a constant value
uint8_t data[] = { 0x00, x0, 0x00, x1};
..\ST7735S\st7735.c(324): error: #28: expression must have a constant value
uint8_t data[] = { color >> 8, color & 0xFF };
..\ST7735S\st7735.c(324): error: #28: expression must have a constant value
uint8_t data[] = { color >> 8, color & 0xFF };
..\ST7735S\st7735.c(329): error: #28: expression must have a constant value
uint8_t data[] = { bgColor >> 8, bgColor & 0xFF };
..\ST7735S\st7735.c(329): error: #28: expression must have a constant value
uint8_t data[] = { bgColor >> 8, bgColor & 0xFF };
..\ST7735S\st7735.c: 0 warnings, 7 errors
".\obj\MySPI.axf" - 7 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:01
报错这个如何解决?
|