首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Wemos D1和TFT液晶屏

Wemos D1和TFT液晶屏
EN

Stack Overflow用户
提问于 2017-02-19 21:29:39
回答 1查看 1.1K关注 0票数 2

我使用的是一个类似Arduino的WeMos D1和一个TFT LCD屏蔽板。当我想运行一个像graphictest这样的示例程序时,它没有编译该程序,并给出了以下错误:

代码语言:javascript
复制
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

下面是定义引脚的代码:

代码语言:javascript
复制
#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
EN

回答 1

Stack Overflow用户

发布于 2017-02-20 20:18:29

如果您查看WeMos D1板,您将看到没有A1A2A3引脚。

ESP8266只有一个模拟引脚(A0),该引脚不能用作数字引脚。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42327792

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档