我使用的是一个类似Arduino的WeMos D1和一个TFT LCD屏蔽板。当我想运行一个像graphictest这样的示例程序时,它没有编译该程序,并给出了以下错误:
Adafruit_TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET);
A3' was not declared in this scope
A2' was not declared in this scope
A1' was not declared in this scope下面是定义引脚的代码:
#define LCD_CS A3 // Chip Select goes to Analog 3
#define LCD_CD A2 // Command/Data goes to Analog 2
#define LCD_WR A1 // LCD Write goes to Analog 1
#define LCD_RD A0 // LCD Read goes to Analog 0发布于 2017-02-20 20:18:29
如果您查看WeMos D1板,您将看到没有A1、A2或A3引脚。
ESP8266只有一个模拟引脚(A0),该引脚不能用作数字引脚。

https://stackoverflow.com/questions/42327792
复制相似问题