Hello,
i am trying to get sensor values of a Bosch BME680 Sensor with a NRG3 board. I tried to work with the Adafruit and Bosch Library. But for both libraries I am struggling to initialize the sensor. When I call
i get the error "U8_C was not declared". Any advice how to compile properly?
I tested the code with other Arduino based boards and it is working.
For reference the initialisation:
Thanks in advance.
i am trying to get sensor values of a Bosch BME680 Sensor with a NRG3 board. I tried to work with the Adafruit and Bosch Library. But for both libraries I am struggling to initialize the sensor. When I call
Code:
struct bme680_dev gas_sensor;
gas_sensor.dev_id = BME680_I2C_ADDR_PRIMARY;
I tested the code with other Arduino based boards and it is working.
For reference the initialisation:
Code:
#include <bme680.h>
#include <bme680_defs.h>
void setup()
{
bmeInitalisation;
}
void loop()
{
}
void bmeInitalisation()
{
struct bme680_dev gas_sensor;
gas_sensor.dev_id = BME680_I2C_ADDR_PRIMARY;
gas_sensor.intf = BME680_I2C_INTF;
gas_sensor.read = user_i2c_read;
gas_sensor.write = user_i2c_write;
gas_sensor.delay_ms = user_delay_ms;
/* amb_temp can be set to 25 prior to configuring the gas sensor
* or by performing a few temperature readings without operating the gas sensor.
*/
gas_sensor.amb_temp = 25;
int8_t rslt = BME680_OK;
rslt = bme680_init(&gas_sensor);
}
Thanks in advance.