Wemos D1和TFT LCD屏蔽

时间:2017-02-19 13:29:39

标签: arduino

我正在使用类似Arduino的WeMos D1和TFT LCD屏蔽。当我想运行像graphicstest这样的示例程序时,它不会编译程序,它会给我这些错误:

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

1 个答案:

答案 0 :(得分:2)

如果您查看WeMos D1板,您会发现没有A2A3A0引脚。
ESP8266只有一个模拟引脚(dialog.show()),并且不能用作数字引脚。

enter image description here