GithubHelp home page GithubHelp logo

adafruit_bmp280_library's Introduction

Adafruit BMP280 Driver (Barometric Pressure Sensor) Build Status

This driver is for the Adafruit BMP280 Breakout

About the BMP280

This precision sensor from Bosch is the best low-cost sensing solution for measuring barometric pressure and temperature. Because pressure changes with altitude you can also use it as an altimeter!

About this Driver

Adafruit invests time and resources providing this open source code. Please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Kevin (KTOWN) Townsend for Adafruit Industries.

Compatibility

MCU Tested Works Doesn't Work Not Tested Notes
Atmega328 @ 16MHz X
Atmega328 @ 12MHz X
Atmega32u4 @ 16MHz X Use SDA/SCL on pins D2 & D3
Atmega32u4 @ 8MHz X Use SDA/SCL on pins D2 & D3
ESP8266 X SDA/SCL default to pins 4 & 5 but any two pins can be assigned as SDA/SCL using Wire.begin(SDA,SCL)
Atmega2560 @ 16MHz X Use SDA/SCL on pins 20 & 21
ATSAM3X8E X Use SDA/SCL on pins 20 & 21
ATSAM21D X
ATtiny85 @ 16MHz X
ATtiny85 @ 8MHz X
Intel Curie @ 32MHz X
STM32F2 X
  • ATmega328 @ 16MHz : Arduino UNO, Adafruit Pro Trinket 5V, Adafruit Metro 328, Adafruit Metro Mini
  • ATmega328 @ 12MHz : Adafruit Pro Trinket 3V
  • ATmega32u4 @ 16MHz : Arduino Leonardo, Arduino Micro, Arduino Yun, Teensy 2.0
  • ATmega32u4 @ 8MHz : Adafruit Flora, Bluefruit Micro
  • ESP8266 : Adafruit Huzzah
  • ATmega2560 @ 16MHz : Arduino Mega
  • ATSAM3X8E : Arduino Due
  • ATSAM21D : Arduino Zero, M0 Pro
  • ATtiny85 @ 16MHz : Adafruit Trinket 5V
  • ATtiny85 @ 8MHz : Adafruit Gemma, Arduino Gemma, Adafruit Trinket 3V

adafruit_bmp280_library's People

Contributors

adams13x13 avatar aljosamrak avatar andydoro avatar bakrus avatar bleckers avatar buzz-tee avatar caternuson avatar dhalbert avatar dirkmueller avatar evaherrada avatar hathach avatar hayden-t avatar hoffmannjan avatar hpsaturn avatar hubua avatar ivoz avatar jschwender avatar koendv avatar ladyada avatar mirkix avatar sellensr avatar siddacious avatar sslupsky avatar tdicola avatar telemattic avatar thijstriemstra avatar toddtreece avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adafruit_bmp280_library's Issues

Typo correction

Hello team,
the below alternative I2C address doesn't work, I guess because of a typo error \in line

#define BMP280_ADDRESS_ALT \ (0x76) /**< Alternative I2C address for the sensor. */

regards Kostas

Latest commit (7e9dd6c) doesn't work with Arduino Mega 2560

What platforms has the latest commit been tested on? Using the code from the latest commit (7e9dd6c) causes my program that uses the BMP280 to completely stop working on the Mega 2560. When calling the begin() function my board just power cycles. Reverting to commit 3805bc5 makes it work again.

I can post more information if required.

different chip ID

I likely had a slightly different board to the one pictured but I found I could only get it to work with the following snippet, either I have a slightly different device with different chip ID or the code is a bit outdated, my board had the 0x76 I2C address and a 0x60 chip ID.

if (!bmp.begin(BMP280_ADDRESS_ALT, 0x60)) {
  //if (!bmp.begin()) {
    Serial.println(F("Could not find a valid BMP280 sensor, check wiring or "
                      "try a different address!"));
    while (1) delay(10);
  }

had to use the I2C scanner and a bit of additional code and reading the datasheet to figure out where the chip ID register was and what the value was (snippet below)

void loop() {
  int nDevices = 0;

  Serial.println("Scanning...");

  for (byte address = 1; address < 127; ++address) {
    // The i2c_scanner uses the return value of
    // the Write.endTransmisstion to see if
    // a device did acknowledge to the address.
    Wire.beginTransmission(address);
    byte error = Wire.endTransmission();

    if (error == 0) {
      Serial.print("I2C device found at address 0x");
      if (address < 16) {
        Serial.print("0");
      }
      Serial.print(address, HEX);
      Serial.println("  !");
        Wire.beginTransmission(address);
        Wire.write(0xD0);
        Wire.endTransmission();
  Wire.requestFrom(address, 1);
        Serial.print("Chip ID: ");
        Serial.println(Wire.read(),HEX);
      ++nDevices;
    } else if (error == 4) {
      Serial.print("Unknown error at address 0x");
      if (address < 16) {
        Serial.print("0");
      }
      Serial.println(address, HEX);
      
    }
  }


I can't compile the test code

Hi i have a problem with the testcode for the BMP280. When i want to compile the code, there comes an error that i can't compile it for the Arduino Nano. Do you now what is the problem? The error is "exit status 1".

Thanks for you help.

Leon

Seems to get incorrect pressure on ESP8266

Using your library on ESP8266 12E, and while temperature reading seems to be ok, I'm getting a value for pressure that is always below 100 000 Pa (so lower than pressure I should get for an ambient one, at altitude close to 0).

As the algorithm is optimized versus the one available on bosch website(which is full 32 bits), Do you have some explanations about implementations ? or any check I can do on my side ?

Ihave already been using 2 others sensors and results are exactly the same.

Min Value swapped with Max Value

I've compiled the example code, everything woks great except that Min Value is swapped with Max Value.
Here's the output:

BMP280 Sensor event test
------------------------------------
Sensor:       BMP280
Type:         Ambient Temp (C)
Driver Ver:   1
Unique ID:    280
Min Value:    85.00
Max Value:    -40.00
Resolution:   0.01
------------------------------------

Temperature = 23.46 *C
Pressure = 1012.14 hPa

Interference on the I2C data bus

  • Arduino board: Wemos D1 Esp-Wroom-02
  • Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.5

BMP280 not works correctly with SHT31-D in parallel after upgrade library version to 1.0.2.
Without SHD31-D problem still exists.
Problem occur after one good reading or more.

Version Temperature Pressure [hPa] Note
1.0.2 -99.99 155.69
1.0.1 -99.99 1278.14
1.0.0 OK OK OK but not for long

After disconnect BMP280, SHT starts working properly (from id 142689).

    id                   dt  sht_temp  sht_hum  bmp280_press  bmp280_temp  
------  -------------------  --------  -------  ------------  -------------
142698  2018-12-08 21:27:56     23.31    52.02       -155.69          99.99
142697  2018-12-08 21:26:41     23.34    51.96       -155.69          99.99
142696  2018-12-08 21:25:26     23.34    51.71       -155.69          99.99
142695  2018-12-08 21:24:11     23.38    52.29       -155.69          99.99
142694  2018-12-08 21:22:56     23.34    51.89       -155.69          99.99
142693  2018-12-08 21:21:41     23.38    51.78       -155.69          99.99
142692  2018-12-08 21:20:26     23.41    51.81       -155.69          99.99
142691  2018-12-08 21:19:11     23.37    51.89       -155.69          99.99
142690  2018-12-08 21:17:56     23.40    52.54       -155.69          99.99
142689  2018-12-08 21:16:41     23.42    51.73       -155.69          99.99
142688  2018-12-08 21:15:26    (NULL)   (NULL)       -155.69          99.99
142687  2018-12-08 21:14:11    (NULL)   (NULL)       -113.46          99.99
142686  2018-12-08 21:12:56     23.28    52.02        983.75          24.73
142685  2018-12-08 21:11:41     23.28    52.52        983.83          24.69
142684  2018-12-08 21:10:26     23.28    52.81        983.80          24.67
142683  2018-12-08 21:09:11     23.23    52.57        983.75          24.65
142682  2018-12-08 21:07:56     23.24    52.34        983.95          24.57
142681  2018-12-08 21:06:41     23.24    52.31        983.88          24.65
142680  2018-12-08 21:05:26     23.24    52.73        983.90          24.68
142679  2018-12-08 21:04:11     23.27    52.47        983.82          24.69
142678  2018-12-08 21:02:56     23.21    52.44        983.84          24.63
142677  2018-12-08 21:01:41     23.20    52.62        983.93          24.56
142676  2018-12-08 21:00:26     23.21    52.42        983.91          24.53
142675  2018-12-08 20:59:11     23.21    52.42        983.95          24.54
142674  2018-12-08 20:57:56     23.23    52.87        984.01          24.56
142673  2018-12-08 20:56:41     23.21    52.27        984.00          24.61
142672  2018-12-08 20:55:26     23.20    52.21        984.18          24.62
142671  2018-12-08 20:54:11     23.18    52.10        984.22          24.73
142670  2018-12-08 20:52:56     23.21    52.33        984.56          24.85
142669  2018-12-08 20:51:41     23.24    52.12        946.74          25.18
142659  2018-12-08 20:38:04    (NULL)   (NULL)       -155.69          99.99
142658  2018-12-08 20:36:49    (NULL)   (NULL)       -155.69          99.99
142657  2018-12-08 20:35:34    (NULL)   (NULL)       -106.75          99.99
142656  2018-12-08 20:34:14    (NULL)   (NULL)       -113.21          99.99
142655  2018-12-08 20:32:59    (NULL)   (NULL)        948.90          23.80
142654  2018-12-08 20:32:03    (NULL)   (NULL)       1278.14         -99.99
142653  2018-12-08 20:30:48    (NULL)   (NULL)       1278.14         -99.99
142652  2018-12-08 20:29:33    (NULL)   (NULL)       1278.14         -99.99
142651  2018-12-08 20:28:18    (NULL)   (NULL)       1278.14         -99.99
142650  2018-12-08 20:27:03    (NULL)   (NULL)       1278.14         -99.99
142649  2018-12-08 20:25:48    (NULL)   (NULL)        984.34          23.34
142648  2018-12-08 20:24:05    (NULL)   (NULL)       1278.14         -99.99
142647  2018-12-08 20:21:20    (NULL)   (NULL)       1278.14         -99.99

Initialization:

#include <Adafruit_SHT31.h>
#include <Adafruit_BMP280.h>

Adafruit_SHT31 sht;
Adafruit_BMP280 bmp;

void setup(void) {
    Wire.begin(2, 14); // D4, D5
    sht.begin(0x44);
    bmp.begin(0x76);
}

Maybe it's just a sensor fault. I replaced it into BME280 and I think it works.
If it stops, I'll write.

Adafruit_BMP280 does not initialize config structure, can result in erroneous configuration for SPI 3-wire mode

Arduino board: Wemos D1-mini (ESP8266)
Arduino IDE version: 1.8.13
List the steps to reproduce the problem below:

Found after much debugging. The _configReg member of Adafruit_BMP280 is never initialized. This creates a problem when Adafruit_BMP280::setSampling is called, as that in turn sends the config register to the BMP280. The config register contains t_sb (initialized by calling setSampling), filter (initialized by calling setSampling) and spi3w_en (never initialized). Thus, if you're unlucky spi3w_en will be true and when setSampling is called the BMP280 will be reconfigured for 3-wire SPI mode.

Why does this usually work? Because the canonical usage is to create a global Adafruit_BMP280 object, and memory is zero'd by default.

Why does it break in my use case? Because I happen to be dynamically allocating the sensor, and (apparently) the memory returned by new doesn't happen to be zero in this case.

Trivial fix: include a constructor for Adafruit_BMP280::config
Note: Adafruit_BMP280::ctrl_meas has the same defect, but when it is used (also in setSampling) it is completely initialized, so it doesn't create a defect

error: 'class Adafruit_BMP280' has no member named 'setI2CAddress' and further errors ...

Dear all,

I''d like to use this ship for model rocketry but I get those errors during compiling:

C:\Travail\Perso\Arduino\Fusées\Ordi Vol\OrdiVol-V1\OrdiVol-V1.ino: In function 'bool initbmp()':
C:\Travail\Perso\Arduino\Fusées\Ordi Vol\OrdiVol-V1\OrdiVol-V1.ino:176:7: error: 'class Adafruit_BMP280' has no member named 'setI2CAddress'
C:\Travail\Perso\Arduino\Fusées\Ordi Vol\OrdiVol-V1\OrdiVol-V1.ino:177:7: error: 'class Adafruit_BMP280' has no member named 'setPressureOverSample'
C:\Travail\Perso\Arduino\Fusées\Ordi Vol\OrdiVol-V1\OrdiVol-V1.ino:178:7: error: 'class Adafruit_BMP280' has no member named 'beginI2C'
C:\Travail\Perso\Arduino\Fusées\Ordi Vol\OrdiVol-V1\OrdiVol-V1.ino: In function 'void getBMP()':
C:\Travail\Perso\Arduino\Fusées\Ordi Vol\OrdiVol-V1\OrdiVol-V1.ino:184:18: error: 'class Adafruit_BMP280' has no member named 'readFloatPressure'
C:\Travail\Perso\Arduino\Fusées\Ordi Vol\OrdiVol-V1\OrdiVol-V1.ino:185:18: error: 'class Adafruit_BMP280' has no member named 'readFloatAltitudeMeters'
C:\Travail\Perso\Arduino\Fusées\Ordi Vol\OrdiVol-V1\OrdiVol-V1.ino: In function 'bool initmpu()':
C:\Travail\Perso\Arduino\Fusées\Ordi Vol\OrdiVol-V1\OrdiVol-V1.ino:196:1: warning: control reaches end of non-void function [-Wreturn-type]
Erreur de compilation pour la carte Teensy 4.1

  • Arduino IDE version 1.18.13
  • Board Teensy 4.1

Thank's in advance.

AstroMob

Will this work on a Beaglebone Black?

Having issues getting the sketch to compile for the BB on the Cloud 9 IDE. It says it can't find the library.
bmp280test.ino:20:29: fatal error: Adafruit_Sensor.h: No such file or directory

Is it expected to work on that platform at all?
Thanks

Library doesn't work for ESP32 and ESP8266 in PlatformIO. #include <SPI.h>^~~~~~~ compilation terminated.

There is the build problem that I must add the following libraries to lib_deps:
https://github.com/adafruit/Adafruit_BusIO
https://github.com/adafruit/Adafruit_Sensor

However, the Adafruit_BusIO library causes the build to fail for the following reason:

#include <SPI.h>
^~~~~~~
compilation terminated.
*** [.pio\build\d1_mini\lib90c\Adafruit BMP280 Library\Adafruit_BMP280.cpp.o] Error 1

I'm a novice. Is there any way to fix this quickly in my case?

Library is missing dependency list (e.g., Adafruit_I2C)

When using this library in Platform.io, it doesn't install the required dependencies correctly. This is presumably an issue in other development environments as well.

Please set the dependency list correctly and fully. Thanks!

Wire.endTransmission after Wire.requestFrom is not okay.

In two places there is a Wire.endTransmission after a Wire.requestFrom.
The Wire.requestFrom is a complete I2C transmission on its own, it should not be followed by a Wire.endTransmission.
The Wire.endTransmission transmits the bytes in the buffer that are written with Wire.write and waits until the I2C transmission (to write date) has finished.

Failing Gracefully?

  • Arduino board: Itsy Bitsy M0 Express and others

  • Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.16 and others

  • List the steps to reproduce the problem below (if possible attach a sketch or
    copy the sketch code in too):

begin() does not return if the sensor is mis-wired, e.g. power lead is not connected. I would have hoped for a timeout after a while and returning with a failure. I suspect this may be farther downstream in the unified sensor or bus io code.

Functions like readTemperature() don't return if called before begin()

None of this is really unexpected, but my students are finding ingenious ways to do things in the wrong order and more resilient software might set a good example. A start at a simple solution might have begin() set a flag that a sensor has already been found and have the others test the flag before trying to talk to the sensor. I'm wondering if this is a problem worth solving...

Pa or hPa?

In the library cpp file, the code states:

/*!
 * Reads the barometric pressure from the device.
 * @return Barometric pressure in hPa.
 */
float Adafruit_BMP280::readPressure() {

However in the example it states:

    Serial.print(F("Pressure = "));
    Serial.print(bmp.readPressure());
    Serial.println(" Pa");

Are these libraries returning Pa or hPa?

include I2C bitbang

Projects sometimes get very crowded. I have a mandatory :) touchscreen that overlaps both the BMP280 I2C addresses. The solution would be (1) to place a physical multiplexer (but it's quite nonsense, being a SW solution possible) or (2) to use a couple of ports, among the many still free, to bitbang the I2C comms. In the repository, e.g. the BitBang_I2C could be integrated into Adafruit BMP280 to meet this need.

ESP32 Core panic when using constructor Adafruit_BMP280(&Wire) and using Adafruit_Sensor

Summary

The library works fine when you use the empty constructor, but when you pass the alternative Wire reference, and get the Adafruit sensors objects, it produce a PANIC:

Code

The next code fails when it try to use the second Wire (Wire1):

void Sensors::init() {
#ifdef M5STICKCPLUS
    Wire.begin(32,33); // M5CoreInk Ext port (default for all sensors)
    Wire1.begin(0,26);   // M5CoreInk hat pines (header on top)
#else
    Wire.begin(34,33); // M5CoreInk Ext port (default for all sensors)
    Wire1.begin(21,22);
#endif
}


void Sensors::bmp280Init() {
    DEBUG("-->[SLIB] try to enable sensor \t: BMP280..");

    if (!bmp280.begin() && !bmp280.begin(BMP280_ADDRESS_ALT)) {
        bmp280 = Adafruit_BMP280(&Wire1);
        if (!bmp280.begin() && !bmp280.begin(BMP280_ADDRESS_ALT)) return;
    }
    Serial.println("-->[SLIB] I2C sensor detected\t: BMP280");
    bmp280.setSampling(Adafruit_BMP280::MODE_NORMAL,  // Operating Mode.
                    Adafruit_BMP280::SAMPLING_X2,     // Temp. oversampling
                    Adafruit_BMP280::SAMPLING_X16,    // Pressure oversampling
                    Adafruit_BMP280::FILTER_X16,      // Filtering.
                    Adafruit_BMP280::STANDBY_MS_500); // Standby time.
    Adafruit_Sensor *bmp_temp = bmp280.getTemperatureSensor();
    Adafruit_Sensor *bmp_pressure = bmp280.getPressureSensor();
    bmp_temp->printSensorDetails();
    bmp_pressure->printSensorDetails();
}

Also the next code:

    bmp280 = Adafruit_BMP280(&Wire);
    if (!bmp280.begin() && !bmp280.begin(BMP280_ADDRESS_ALT)) return;
    Serial.println("-->[SLIB] I2C sensor detected\t: BMP280");
    bmp280.setSampling(Adafruit_BMP280::MODE_NORMAL,  // Operating Mode.
                    Adafruit_BMP280::SAMPLING_X2,     // Temp. oversampling
                    Adafruit_BMP280::SAMPLING_X16,    // Pressure oversampling
                    Adafruit_BMP280::FILTER_X16,      // Filtering.
                    Adafruit_BMP280::STANDBY_MS_500); // Standby time.
    Adafruit_Sensor *bmp_temp = bmp280.getTemperatureSensor();
    bmp_temp->printSensorDetails();

The next code works fine (when the second constructor it is empty)

   void Sensors::init() {
       Wire1.begin(21,22);
    }


    if (!bmp280.begin() && !bmp280.begin(BMP280_ADDRESS_ALT)) {
        bmp280 = Adafruit_BMP280(&Wire1);
        if (!bmp280.begin() && !bmp280.begin(BMP280_ADDRESS_ALT)) return;
    }
    Serial.println("-->[SLIB] I2C sensor detected\t: BMP280");
    bmp280.setSampling(Adafruit_BMP280::MODE_NORMAL,  // Operating Mode.
                    Adafruit_BMP280::SAMPLING_X2,     // Temp. oversampling
                    Adafruit_BMP280::SAMPLING_X16,    // Pressure oversampling
                    Adafruit_BMP280::FILTER_X16,      // Filtering.
                    Adafruit_BMP280::STANDBY_MS_500); // Standby time.
    Adafruit_Sensor *bmp_temp = bmp280.getTemperatureSensor();
    bmp_temp->printSensorDetails();
    

Maybe the issue is because when you pass the Wire parameter the library delete the objects:

Adafruit_BMP280::~Adafruit_BMP280(void) {
  if (spi_dev)
    delete spi_dev;
  if (i2c_dev)
    delete i2c_dev;
  delete temp_sensor;
  delete pressure_sensor;
}

Environment

PlatformIO Core version: 5.2.4
framework: espressif32, Arduino
boards: ESP32 dev board, M5StickC

Overflow error, line 83.

I use several sensors on the I2C bus. When polling every second, switching between them (call bmp.begin (0x76), bmp.begin (0x77)) after 45 minutes, a buffer overflow occurs and an error occurs, reboot.

ESP Exception Decoder
Exception 29: StoreProhibited: A store referenced a page mapped with an attribute that does not permit stores
PC: 0x40205c08: Adafruit_I2CDevice::Adafruit_I2CDevice(unsigned char, TwoWire*) at
Memory allocation on 16 bytes failed at 0x4020250e: .../Adafruit_BMP280.cpp line 83

SCR2021-08-19 в 23 58 51

Please fix the library.
file line 83:

    //i2c_dev = new Adafruit_I2CDevice(addr, _wire); // Error with buffer overflow on frequent calls bmp.begin (0x76) (c) by @badloona, AlexGyver chat.
    if (!i2c_dev) i2c_dev = new Adafruit_I2CDevice(addr, _wire);  //Temporary solution!

Compile fails if SPI_INTERFACES_COUNT = 0

  • Arduino board: Custom SAMD board

  • Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.9

  • List the steps to reproduce the problem below (if possible attach a sketch or
    copy the sketch code in too): LIST REPRO STEPS BELOW

I am using a custom SAMD board and configured the board to use I2C only and there are no SPI ports configured. That is, SPI_INTERFACES_COUNT = 0.

If SPI_INTERFACES_COUNT = 0 in variants.h, the compilation fails with the following error message:

/Arduino/libraries/Adafruit_BMP280_Library/Adafruit_BMP280.h:156:53: error: 'SPI' was not declared in this scope
Adafruit_BMP280(int8_t cspin, SPIClass *theSPI = &SPI);

I think each of the code sections for SPI and I2C need to be enclosed with a conditional compiler directive. For example:

#if SPI_INTERFACES_COUNT > 0
blah blah
#endif

Enabling "takeForcedMeasurement()"?

Right now when setting the BMP280 in FORCED mode at startup once, I experience reading out the same value for temperature and pressure over and over. This is probably due to the sensor not updating the readout values periodically (like in NORMAL mode), but rather waiting for a trigger to do so.

Compared to the BME280 library the "takeForcedMeasurement" method is still commened out with a "todo" annortation. As the same method in the BME280 library exists and has the exact same content, I wanted to ask if the method could be safely enabled in this library as well to allow using the FORCED mode with the BMP sensor at all.

Unable to compile in Arduino IDE for WAVGAT UNO R3

  • Arduino board: WAVGAT UNO R3

  • Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.13

  • List the steps to reproduce the problem below (if possible attach a sketch or
    copy the sketch code in too):

Tried to compile the example sketches (bmp280test.ino and bmp280_sensortest.ino) with the WAVGAT UNO R3 board and received the error:

Warning: platform.txt from core 'Arduino AVR Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
libraries\Adafruit_BMP280_Library\Adafruit_BMP280.cpp.o: In function `Adafruit_BMP280_Temp::~Adafruit_BMP280_Temp()':
C:\Users\metta\OneDrive\Documentos\Arduino\libraries\Adafruit_BMP280_Library/Adafruit_BMP280.cpp:435: undefined reference to `operator delete(void*, unsigned int)'
libraries\Adafruit_BMP280_Library\Adafruit_BMP280.cpp.o: In function `Adafruit_BMP280_Pressure::~Adafruit_BMP280_Pressure()':
C:\Users\metta\OneDrive\Documentos\Arduino\libraries\Adafruit_BMP280_Library/Adafruit_BMP280.cpp:435: undefined reference to `operator delete(void*, unsigned int)'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board WAVGAT UNO R3

The same occurs with WAVGAT NANO 3.0.

All works fine with Arduino Uno and Arduino Nano.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.