kriswiner / CCS811

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

Compiling BME280_CCS811_Butterfly.ino with Arduino Uno #2

Open Agnar22 opened 6 years ago

Agnar22 commented 6 years ago

Arduino: 1.8.5 (Windows store 1.8.10.0) Board: Arduino Uno R3 SMD

I bought this sensor: (https://www.tindie.com/products/onehorse/air-quality-sensors/?pt=ac_prod_search#specs), when trying to compile the provided code-exemple it throws: 'class TwoWire' has no member named 'transfer'. The sketch sais that "you will have to modify the sketch since the Wire.transfer functions and RTC.h library are specific to the STM32L4", but how do you modify it for an arduino uno? Any help is greatly appreciated!

kriswiner commented 6 years ago

Use the wire calls as found here, for example:

https://github.com/kriswiner/ESP8285/blob/master/BME280_VEML6040_LTSleep_ESP8285.ino

On Wed, Jun 13, 2018 at 2:12 AM, Agnar22 notifications@github.com wrote:

Arduino: 1.8.5 (Windows store 1.8.10.0) Board: Arduino Uno R3 SMD

I bought this sensor: (https://www.tindie.com/ products/onehorse/air-quality-sensors/?pt=ac_prod_search#specs), when trying to compile the provided code-exemple it throws: 'class TwoWire' has no member named 'transfer'. The sketch sais that "you will have to modify the sketch since the Wire.transfer functions and RTC.h library are specific to the STM32L4", but how do you modify it for an arduino uno? 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/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qufY7CeuzgsM4RYguZb2QCl5rE0Oks5t8NeLgaJpZM4Ul0ey .