Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Weatherduino_AQM_ESP8266_ASK_v320_b003 Compile Problems
#1

I am trying to compile the latest AQM code but have run into problems. Using Arduino 1.8.13 and ESP8266 Boards Manager 2.7.4, all libraries removed except those provided in the download.. Selected Generic ESP8266 Module as the board(maybe this is wrong?)

I have a Z19B C02 sensor installed, and a HTU21D fitted. AQM is a 7003. Wifi enabled and credentials set. No display.

Here are the error messages. - It's got to be something simple I'm sure but can't see it. Huh
 Arduino: 1.8.13 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"          WeatherDuino_AQM_ESP8266_ASK_v320_b003:71:25: error: 'D6' was not declared in this scope #define DUST_RX         D6   // D6 - GPIO12                         ^D:\My Documents\Arduino\WeatherDuino_AQM_ESP8266_ASK_v320_b003\WeatherDuino_AQM_ESP8266_ASK_v320_b003.ino:241:30: note: in expansion of macro 'DUST_RX'   SoftwareSerial Dust_Serial(DUST_RX, -1);           // define serial for PMS7003 sensor                              ^WeatherDuino_AQM_ESP8266_ASK_v320_b003:73:25: error: 'D7' was not declared in this scope #define CO2_RX          D7   // D7 - GPIO13                         ^D:\My Documents\Arduino\WeatherDuino_AQM_ESP8266_ASK_v320_b003\WeatherDuino_AQM_ESP8266_ASK_v320_b003.ino:249:29: note: in expansion of macro 'CO2_RX'   SoftwareSerial CO2_Serial(CO2_RX, CO2_TX);    // define serial for CO2 sensor                             ^WeatherDuino_AQM_ESP8266_ASK_v320_b003:74:25: error: 'D5' was not declared in this scope #define CO2_TX          D5   // D5 - GPIO14                         ^D:\My Documents\Arduino\WeatherDuino_AQM_ESP8266_ASK_v320_b003\WeatherDuino_AQM_ESP8266_ASK_v320_b003.ino:249:37: note: in expansion of macro 'CO2_TX'   SoftwareSerial CO2_Serial(CO2_RX, CO2_TX);    // define serial for CO2 sensor                                     ^WeatherDuino_AQM_ESP8266_ASK_v320_b003:69:25: error: 'D0' was not declared in this scope #define TXData_PIN      D0   // D0 - GPIO16                         ^D:\My Documents\Arduino\WeatherDuino_AQM_ESP8266_ASK_v320_b003\WeatherDuino_AQM_ESP8266_ASK_v320_b003.ino:252:25: note: in expansion of macro 'TXData_PIN' RH_ASK ask433(1000, -1, TXData_PIN, -1); // ESP8266: do not use pin 11                         ^D:\My Documents\Arduino\WeatherDuino_AQM_ESP8266_ASK_v320_b003\WeatherDuino_AQM_ESP8266_ASK_v320_b003.ino: In function 'void setup()':WeatherDuino_AQM_ESP8266_ASK_v320_b003:69:25: error: 'D0' was not declared in this scope #define TXData_PIN      D0   // D0 - GPIO16                         ^D:\My Documents\Arduino\WeatherDuino_AQM_ESP8266_ASK_v320_b003\WeatherDuino_AQM_ESP8266_ASK_v320_b003.ino:365:11: note: in expansion of macro 'TXData_PIN'   pinMode(TXData_PIN, OUTPUT);             ^WeatherDuino_AQM_ESP8266_ASK_v320_b003:70:25: error: 'D4' was not declared in this scope #define PMS7003_SetPin  D4                                ^D:\My Documents\Arduino\WeatherDuino_AQM_ESP8266_ASK_v320_b003\WeatherDuino_AQM_ESP8266_ASK_v320_b003.ino:401:11: note: in expansion of macro 'PMS7003_SetPin'   pinMode(PMS7003_SetPin, OUTPUT);           ^D:\My Documents\Arduino\WeatherDuino_AQM_ESP8266_ASK_v320_b003\Functions.ino: In function 'void WakeUpDustSensor()':WeatherDuino_AQM_ESP8266_ASK_v320_b003:70:25: error: 'D4' was not declared in this scope #define PMS7003_SetPin  D4                                ^D:\My Documents\Arduino\WeatherDuino_AQM_ESP8266_ASK_v320_b003\Functions.ino:64:18: note: in expansion of macro 'PMS7003_SetPin'     digitalWrite(PMS7003_SetPin, HIGH);  // PMS7003 Wakeup the sensor - turns the fan ON                  ^D:\My Documents\Arduino\WeatherDuino_AQM_ESP8266_ASK_v320_b003\PMS7003.ino: In function 'void read_PMS7003()':WeatherDuino_AQM_ESP8266_ASK_v320_b003:70:25: error: 'D4' was not declared in this scope #define PMS7003_SetPin  D4                                ^D:\My Documents\Arduino\WeatherDuino_AQM_ESP8266_ASK_v320_b003\PMS7003.ino:43:16: note: in expansion of macro 'PMS7003_SetPin'   digitalWrite(PMS7003_SetPin, LOW);  // Put the sensor to sleep and turn the fan OFF                ^exit status 1'D6' was not declared in this scope This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Reply


Messages In This Thread



Users browsing this thread: 1 Guest(s)