kriswiner / CCS811

Arduino sketch for the BME280_CCS811 Air Quality Sensor Breakout
11 stars 4 forks source link

Compiling the example throws 'BME280 does not name a type' #1

Closed maaland closed 6 years ago

maaland commented 6 years ago

Arduino: 1.8.5 (Mac OS X), Board: "Arduino/Genuino Uno"

I bought the CCS811 sensor and I've been trying to compile the example but I'm getting an error (among several) stating that 'BME280' does not name a type. I have imported the library into the Arduino IDE but I can't seem to get it to compile. Any help is greatly appreciated.

kriswiner commented 6 years ago

Yes, the CCS811 sketch isn't a proper library and you can't use the library tool to install it. Unzip the file in the directory where you store your Arduino sketches. Then open the main sketch in the Arduino IDE. You should have the main sketch and BME280.h and BME280.cpp in the tabs. This should compile. Let me know if you are still having trouble.

On Tue, Jun 12, 2018 at 6:26 AM, Marius Maaland notifications@github.com wrote:

Arduino: 1.8.5 (Mac OS X), Board: "Arduino/Genuino Uno"

I bought the CCS811 sensor and I've been trying to compile the example but I'm getting an error (among several) stating that 'BME280' does not name a type. I have imported the library into the Arduino IDE but I can't seem to get it to compile. Any help is greatly appreciated.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CCS811/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qvzXnSTUsySF9sNzukUCPw7XlEEJks5t78F0gaJpZM4UkbQ_ .

maaland commented 6 years ago

Thank you!