This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AQM_software issue
#1
Werk,
I am getting the following message when trying to load the software on my new AQM. What im I doing wrong??
Code:
 
WeatherDuino_AQM_ESP8266_ASK_v120_b006:68: error: 'D6' was not declared in this scope

 #define DUST_RX         D6   // D6 - GPIO12

                         ^

C:\Users\JBA\Documents\Arduino\WeatherDuino_AQM_II\v120\software\WeatherDuino_AQM_ESP8266_ASK_v120_b006\WeatherDuino_AQM_ESP8266_ASK_v120_b006.ino:224:30: note: in expansion of macro 'DUST_RX'

   SoftwareSerial Dust_Serial(DUST_RX, -1);           // define serial for PMS7003 sensor

                              ^

WeatherDuino_AQM_ESP8266_ASK_v120_b006:70: error: 'D7' was not declared in this scope

 #define CO2_RX          D7   // D7 - GPIO13

                         ^

C:\Users\JBA\Documents\Arduino\WeatherDuino_AQM_II\v120\software\WeatherDuino_AQM_ESP8266_ASK_v120_b006\WeatherDuino_AQM_ESP8266_ASK_v120_b006.ino:231:29: note: in expansion of macro 'CO2_RX'

   SoftwareSerial CO2_Serial(CO2_RX, CO2_TX);    // define serial for CO2 sensor

                             ^

WeatherDuino_AQM_ESP8266_ASK_v120_b006:71: error: 'D5' was not declared in this scope

 #define CO2_TX          D5   // D5 - GPIO14

                         ^

C:\Users\JBA\Documents\Arduino\WeatherDuino_AQM_II\v120\software\WeatherDuino_AQM_ESP8266_ASK_v120_b006\WeatherDuino_AQM_ESP8266_ASK_v120_b006.ino:231:37: note: in expansion of macro 'CO2_TX'

   SoftwareSerial CO2_Serial(CO2_RX, CO2_TX);    // define serial for CO2 sensor

                                     ^

WeatherDuino_AQM_ESP8266_ASK_v120_b006:66: error: 'D0' was not declared in this scope

 #define TXData_PIN      D0   // D0 - GPIO16

                         ^

C:\Users\JBA\Documents\Arduino\WeatherDuino_AQM_II\v120\software\WeatherDuino_AQM_ESP8266_ASK_v120_b006\WeatherDuino_AQM_ESP8266_ASK_v120_b006.ino:234:25: note: in expansion of macro 'TXData_PIN'

 RH_ASK ask433(1000, -1, TXData_PIN, -1); // ESP8266: do not use pin 11

                         ^

WeatherDuino_AQM_ESP8266_ASK_v120_b006:237: error: 'D2' was not declared in this scope

   SH1106 display(OLED_ADDRESS, D2, D1);

                                ^

WeatherDuino_AQM_ESP8266_ASK_v120_b006:237: error: 'D1' was not declared in this scope

   SH1106 display(OLED_ADDRESS, D2, D1);

                                    ^

C:\Users\JBA\Documents\Arduino\WeatherDuino_AQM_II\v120\software\WeatherDuino_AQM_ESP8266_ASK_v120_b006\WeatherDuino_AQM_ESP8266_ASK_v120_b006.ino: In function 'void setup()':

WeatherDuino_AQM_ESP8266_ASK_v120_b006:66: error: 'D0' was not declared in this scope

 #define TXData_PIN      D0   // D0 - GPIO16

                         ^

C:\Users\JBA\Documents\Arduino\WeatherDuino_AQM_II\v120\software\WeatherDuino_AQM_ESP8266_ASK_v120_b006\WeatherDuino_AQM_ESP8266_ASK_v120_b006.ino:355:11: note: in expansion of macro 'TXData_PIN'

   pinMode(TXData_PIN, OUTPUT);    

           ^

WeatherDuino_AQM_ESP8266_ASK_v120_b006:67: error: 'D4' was not declared in this scope

 #define PMS7003_SetPin  D4       

                         ^

C:\Users\JBA\Documents\Arduino\WeatherDuino_AQM_II\v120\software\WeatherDuino_AQM_ESP8266_ASK_v120_b006\WeatherDuino_AQM_ESP8266_ASK_v120_b006.ino:359:11: note: in expansion of macro 'PMS7003_SetPin'

   pinMode(PMS7003_SetPin, OUTPUT);

           ^

C:\Users\JBA\Documents\Arduino\WeatherDuino_AQM_II\v120\software\WeatherDuino_AQM_ESP8266_ASK_v120_b006\Functions.ino: In function 'void WakeUpDustSensor()':

WeatherDuino_AQM_ESP8266_ASK_v120_b006:67: error: 'D4' was not declared in this scope

 #define PMS7003_SetPin  D4       

                         ^

C:\Users\JBA\Documents\Arduino\WeatherDuino_AQM_II\v120\software\WeatherDuino_AQM_ESP8266_ASK_v120_b006\Functions.ino:54:18: note: in expansion of macro 'PMS7003_SetPin'

     digitalWrite(PMS7003_SetPin, HIGH);  // PMS7003 Wakeup the sensor - turns the fan ON

                  ^

C:\Users\JBA\Documents\Arduino\WeatherDuino_AQM_II\v120\software\WeatherDuino_AQM_ESP8266_ASK_v120_b006\PMS7003.ino: In function 'void read_PMS7003()':

WeatherDuino_AQM_ESP8266_ASK_v120_b006:67: error: 'D4' was not declared in this scope

 #define PMS7003_SetPin  D4       

                         ^

C:\Users\JBA\Documents\Arduino\WeatherDuino_AQM_II\v120\software\WeatherDuino_AQM_ESP8266_ASK_v120_b006\PMS7003.ino:39:16: note: in expansion of macro 'PMS7003_SetPin'

   digitalWrite(PMS7003_SetPin, LOW);  // Put the sensor to sleep and turn the fan OFF

                ^

Using library TimezoneESP8266 in folder: C:\Users\JBA\Documents\Arduino\libraries\TimezoneESP8266 (legacy)
Using library Time at version 1.5 in folder: C:\Users\JBA\Documents\Arduino\libraries\Time 
Using library ESP8266WiFi at version 1.0 in folder: C:\Users\JBA\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\ESP8266WiFi 
Using library ESP8266mDNS in folder: C:\Users\JBA\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\ESP8266mDNS (legacy)
Using library ESP8266WebServer at version 1.0 in folder: C:\Users\JBA\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\ESP8266WebServer 
Using library ESP8266HTTPClient at version 1.1 in folder: C:\Users\JBA\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\ESP8266HTTPClient 
Using library ArduinoOTA at version 1.0 in folder: C:\Users\JBA\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\ArduinoOTA 
Using library RadioHead_TeensyVersion in folder: C:\Users\JBA\Documents\Arduino\libraries\RadioHead_TeensyVersion (legacy)
Using library SPI at version 1.0 in folder: C:\Users\JBA\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\SPI 
Using library Wire at version 1.0 in folder: C:\Users\JBA\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\Wire 
Using library esp8266-OLED-SSD1306 at version 3.2.7 in folder: C:\Users\JBA\Documents\Arduino\libraries\esp8266-OLED-SSD1306 
Using library Timer in folder: C:\Users\JBA\Documents\Arduino\libraries\Timer (legacy)
Using library Adafruit_SHT31 at version 1.0.0 in folder: C:\Users\JBA\Documents\Arduino\libraries\Adafruit_SHT31 
Using library HTU21D in folder: C:\Users\JBA\Documents\Arduino\libraries\HTU21D (legacy)
Using library SoftwareSerial at version 1.0 in folder: C:\Users\JBA\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\SoftwareSerial 
Using library ArduinoJson at version 5.13.2 in folder: C:\Users\JBA\Documents\Arduino\libraries\ArduinoJson 
exit status 1
'D6' was not declared in this scope
#2
Hi,

Please check if you are compiling the code for LOLIN (WEMOS) D1 R2 & mini.

The code compiles fine.
#3
(01-06-2019, 22:49)Werk_AG Wrote: Hi,

Please check if you are compiling the code for LOLIN (WEMOS) D1 R2 & mini.

The code compiles fine.

I had accidentally selected the wrong board, all ok now
Thanks




Users browsing this thread: 1 Guest(s)