我正在使用類似Arduino的WeMos D1和TFT LCD屏蔽。當我想運行像graphictest一個示例程序,它不會編譯程序,它給了我這些錯誤:Wemos D1和TFT液晶顯示器屏蔽
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
爲'A3'等的定義是https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/variants/standard/pins_arduino.h,所以你首先需要'#include',或者直接編號如3,2,1等 –