I'm trying to get the Air Quality Wing to work with Adafruit feather boards and I'm using Arduino IDE when they were created for particle boards. They are compatible with the feather boards, but Arduino IDE is not supported. I'm trying to fix the code to work in Arduino. Here are my errors.
/tmp/728363207/AirQualityWingExample/ccs811.cpp: In member function 'uint32_t CCS811::setup(ccs811_init_t*)':
/tmp/728363207/AirQualityWingExample/ccs811.cpp:35:26: error: 'INPUT' was not declared in this scope
pinMode(this->int_pin, INPUT);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:35:31: error: 'pinMode' was not declared in this scope
pinMode(this->int_pin, INPUT);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:36:63: error: 'FALLING' was not declared in this scope
attachInterrupt(this->int_pin, & CCS811::int_handler, this, FALLING);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:36:70: error: 'attachInterrupt' was not declared in this scope
attachInterrupt(this->int_pin, & CCS811::int_handler, this, FALLING);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:39:27: error: 'OUTPUT' was not declared in this scope
pinMode(this->wake_pin, OUTPUT);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:40:32: error: 'LOW' was not declared in this scope
digitalWrite(this->wake_pin, LOW); // Has a pullup
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:40:35: error: 'digitalWrite' was not declared in this scope
digitalWrite(this->wake_pin, LOW); // Has a pullup
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:45:10: error: 'delay' was not declared in this scope
delay(1);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:55:3: error: 'Wire' was not declared in this scope
Wire.beginTransmission(this->address);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp: In member function 'uint32_t CCS811::set_env(float, float)':
/tmp/728363207/AirQualityWingExample/ccs811.cpp:98:41: error: 'memcpy' was not declared in this scope
memcpy(data,&hum_conv,sizeof(hum_conv));
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:102:3: error: 'Wire' was not declared in this scope
Wire.beginTransmission(this->address);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp: In member function 'uint32_t CCS811::enable()':
/tmp/728363207/AirQualityWingExample/ccs811.cpp:116:3: error: 'Wire' was not declared in this scope
Wire.beginTransmission(this->address);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp: In member function 'uint32_t CCS811::save_baseline()':
/tmp/728363207/AirQualityWingExample/ccs811.cpp:144:3: error: 'Wire' was not declared in this scope
Wire.beginTransmission(this->address);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:154:3: error: 'EEPROM' was not declared in this scope
EEPROM.put(CCS811_BASELINE_ADDR, baseline);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp: In member function 'uint32_t CCS811::restore_baseline()':
/tmp/728363207/AirQualityWingExample/ccs811.cpp:165:3: error: 'EEPROM' was not declared in this scope
EEPROM.get(CCS811_BASELINE_ADDR, baseline);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:173:3: error: 'Wire' was not declared in this scope
Wire.beginTransmission(this->address);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp: In member function 'uint32_t CCS811::read(ccs811_data_t*)':
/tmp/728363207/AirQualityWingExample/ccs811.cpp:193:7: error: 'Wire' was not declared in this scope
Wire.beginTransmission(this->address);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp: In member function 'uint32_t CCS811::get_app_version(ccs811_app_ver_t*)':
/tmp/728363207/AirQualityWingExample/ccs811.cpp:223:3: error: 'Wire' was not declared in this scope
Wire.beginTransmission(this->address);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp: In member function 'uint32_t CCS811::update_app(const ccs811_app_update_t*)':
/tmp/728363207/AirQualityWingExample/ccs811.cpp:283:3: error: 'Serial' was not declared in this scope
Serial.println("start update");
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:287:26: error: 'OUTPUT' was not declared in this scope
pinMode(this->rst_pin, OUTPUT);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:287:32: error: 'pinMode' was not declared in this scope
pinMode(this->rst_pin, OUTPUT);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:288:31: error: 'LOW' was not declared in this scope
digitalWrite(this->rst_pin, LOW);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:288:34: error: 'digitalWrite' was not declared in this scope
digitalWrite(this->rst_pin, LOW);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:289:10: error: 'delay' was not declared in this scope
delay(1);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:290:26: error: 'INPUT' was not declared in this scope
pinMode(this->rst_pin, INPUT);
^
/tmp/728363207/AirQualityWingExample/ccs811.cpp:299:3: error: 'Wire' was not declared in this scopeError Code Hel
Wire.beginTransmission(this->address);
^
/tmp/728363207/AirQualityWError Code HelingExample/ccs811.cpp:329:30: error: 'memcpy' was not declared in this scope
memcpy(&payload[1],data,8);