arduino - Wemos D1 和 TFT LCD 扩展板

标签 arduino

我正在使用一个类似 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

最佳答案

如果您查看 WeMos D1 板,您会发现没有 A1A2A3 引脚。
ESP8266 只有 1 个模拟引脚(A0),不能用作数字引脚。

enter image description here

关于arduino - Wemos D1 和 TFT LCD 扩展板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42327792/

相关文章:

arduino - 如何在 Arduino Uno 上为 HM-10 BLE 设置服务和特性?

php - Apache http 服务器回复 418 ("I' m a teapot") - json 参数,使用来自 arduino 的 PUT 的 TCP 请求

javascript - 如何在arduino中使用javascript代码并将javascript值分配给arduino值

android - Arduino <-> Cordova (Android) 串行通信的问题

visual-studio-code - Visual Studio Code 的智能感知无法识别 Arduino 端口管理

python - PySerial 不与 Arduino 交谈

arduino - 使用 EtherCard.h 库将 arduino 数据发送到我的数据库

node.js - Arduino 无线和 Node.js

c++ - 如何在arduino中从sd卡创建变量

c++ - 对 CMake find_path 提示使用正则表达式