Closed collote69 closed 5 years ago
Hello sorry, I have the same error but I comment what you say and I use ESP32 Wrover Module but it tells me an error of compiling a card, I do not know what to do thanks.
Please submit an error message
esp32-camera-bme280:5:29: error: Adafruit_Sensor.h: No such file or directory
Several libraries were found for "WiFi.h" compilation terminated.
used: C:\Users\home\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.1\libraries\WiFi not used: C:\Users\home\Pictures\esp32\arduino-1.8.8\libraries\WiFi exit status 1 Adafruit_Sensor.h: No such file or directory and installed the sensor libraries but I do not know if I do it right I'm a bit of a rookie with this
esp32-camera-bme280:5:29: error: Adafruit_Sensor.h: No such file or directory
Several libraries were found for "WiFi.h" compilation terminated.
used: C:\Users\home\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.1\libraries\WiFi not used: C:\Users\home\Pictures\esp32\arduino-1.8.8\libraries\WiFi exit status 1 Adafruit_Sensor.h: No such file or directory and installed the sensor libraries but I do not know if I do it right I'm a bit of a rookie with this
In order to support BME280, I will use Adafruit_BME280_Library, but this library conflicts with
e commented #include
esp32-camera-bme280:56:1: error: 'Adafruit_BME280' does not name a type
Adafruit_BME280 bme;
^
C:\Users\Ivan\Pictures\esp32\esp32-camera-bme280\esp32-camera-bme280.ino: In function 'void drawFrame2(OLEDDisplay, OLEDDisplayUiState, int16_t, int16_t)':
esp32-camera-bme280:92:33: error: 'bme' was not declared in this scope
temp = "Temp:" + String(bme.readTemperature()) + " *C";
^
C:\Users\home\Pictures\esp32\esp32-camera-bme280\esp32-camera-bme280.ino: In function 'void setup()':
esp32-camera-bme280:135:10: error: 'bme' was not declared in this scope
if (!bme.begin(BEM280_ADDRESS)) {
^
Se encontraron varias bibliotecas para "WiFi.h" Usado: C:\Users\home\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.1\libraries\WiFi No usado: C:\Users\Ivan\Pictures\esp32\arduino-1.8.8\libraries\WiFi Se encontraron varias bibliotecas para "Wire.h" Usado: C:\Users\home\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.1\libraries\Wire No usado: C:\Users\home\Pictures\esp32\arduino-1.8.8\libraries\Wire exit status 1 'Adafruit_BME280' does not name a type
e commented #include
but it gives me these errors I do not know what I do wrong esp32-camera-bme280:56:1: error: 'Adafruit_BME280' does not name a type
Adafruit_BME280 bme;
^
C:\Users\Ivan\Pictures\esp32\esp32-camera-bme280\esp32-camera-bme280.ino: In function 'void drawFrame2(OLEDDisplay, OLEDDisplayUiState, int16_t, int16_t)':
esp32-camera-bme280:92:33: error: 'bme' was not declared in this scope
temp = "Temp:" + String(bme.readTemperature()) + " *C"; ^
C:\Users\home\Pictures\esp32\esp32-camera-bme280\esp32-camera-bme280.ino: In function 'void setup()':
esp32-camera-bme280:135:10: error: 'bme' was not declared in this scope
if (!bme.begin(BEM280_ADDRESS)) { ^
Se encontraron varias bibliotecas para "WiFi.h" Usado: C:\Users\home\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.1\libraries\WiFi No usado: C:\Users\Ivan\Pictures\esp32\arduino-1.8.8\libraries\WiFi Se encontraron varias bibliotecas para "Wire.h" Usado: C:\Users\home\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.1\libraries\Wire No usado: C:\Users\home\Pictures\esp32\arduino-1.8.8\libraries\Wire exit status 1 'Adafruit_BME280' does not name a type
No, not the #include Adafruit_BME280_Library
library, usually in your C:\Users\YourName\Documents\Arduino\libraries\Adafruit_BMP280_Library
, comment Adafruit_BME280.h
Line 29 in the file
hello sorry in the file H or CPP and commented on H and I get this.
float Adafruit_BME280::seaLevelForAltitude(float altitude, float atmospheric)
^
Several libraries were found for "WiFi.h" used: C:\Users\Ivan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.1\libraries\WiFi No used: C:\Users\Ivan\Pictures\esp32\arduino-1.8.8\libraries\WiFi Several libraries were found for "Wire.h" used: C:\Users\Ivan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.1\libraries\Wire No used: C:\Users\Ivan\Pictures\esp32\arduino-1.8.8\libraries\Wire Several libraries were found fora "SPI.h" Used: C:\Users\Ivan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.1\libraries\SPI No used: C:\Users\Ivan\Pictures\esp32\arduino-1.8.8\libraries\SPI exit status 1 Error compilando para la tarjeta ESP32 Wrover Module.
I'm sorry I do not know much about this
@collote69 Please replace your existing deletion with me. Adafruit_BME280_Library
Sorry I just did what you tell me I'm replacing the libraries and I'm testing with arduino in ubuntu now the error is:
n file included from /home/comodo/.arduino15/packages/esp32/hardware/esp32/1.0.1/tools/sdk/include/esp32-camera/esp_camera.h:70:0 from /home/comodo/Images/esp32-camera-bme280/esp32-camera-bme280.ino:6: /home/comodo/.arduino15/packages/esp32/hardware/esp32/1.0.1/tools/sdk/include/esp32-camera/sensor.h:83:24: error: conflicting declaration 'typedef struct _sensor sensor_t' typedef struct _sensor sensor_t; ^ In file included from /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.h:29:06, from /home/comodo/Images/esp32-camera-bme280/esp32-camera-bme280.ino:5: /home/comodo/Documentos/Arduino/libraries/Adafruit_Unified_Sensor/Adafruit_Sensor.h:137:3: note: previous declaration as 'typedef struct sensor_t sensor_t' } sensor_t; ^ In file included from /home/comodo/.arduino15/packages/esp32/hardware/esp32/1.0.1/tools/sdk/include/esp32-camera/esp_camera.h:70:0 from /home/comodo/Images/esp32-camera-bme280/esp32-camera-bme280.ino:6: /home/comodo/.arduino15/packages/esp32/hardware/esp32/1.0.1/tools/sdk/include/esp32-camera/sensor.h:122:3: error: conflicting declaration 'typedef struct _sensor sensor_t' } sensor_t; ^ In file included from /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.h:29:06, from /home/comodo/Images/esp32-camera-bme280/esp32-camera-bme280.ino:5: /home/comodo/Documentos/Arduino/libraries/Adafruit_Unified_Sensor/Adafruit_Sensor.h:137:3: note: previous declaration as 'typedef struct sensor_t sensor_t' } sensor_t; ^ /home/comodo/Images/esp32-camera-bme280/esp32-camera-bme280.ino: In function 'void button1Func ()': esp32-camera-bme280: 67: 8: error: 'struct sensor_t' has no member named 'set_vflip' s-> set_vflip (s, in); ^ /home/comodo/Images/esp32-camera-bme280/esp32-camera-bme280.ino: In function 'void setup ()': esp32-camera-bme280: 181: 8: error: 'struct sensor_t' has no member named 'set_framesize' s-> set_framesize (s, FRAMESIZE_QVGA); ^ Several libraries were found for "SPI.h" Used: /home/comodo/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/SPI Not used: / home / comodo / arduino / libraries / SPI exit status 1 'struct sensor_t' has no member named 'set_vflip'
@collote69 Have you replaced it with the library I provided?
I see the error message or the previous error. According to your error message, this library location should be at /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.h
Jump to line 29, as shown below, close the header file, and then recompile.
if I replaced the library that I had provided and I just commented on line 29 of how the image shows me and now this comes out:
/home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:40:1: error: 'Adafruit_BME280' does not name a type Adafruit_BME280::Adafruit_BME280() ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:50:1: error: 'Adafruit_BME280' does not name a type Adafruit_BME280::Adafruit_BME280(int8_t cspin) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:63:1: error: 'Adafruit_BME280' does not name a type Adafruit_BME280::Adafruit_BME280(int8_t cspin, int8_t mosipin, int8_t misopin, int8_t sckpin) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:75:6: error: 'Adafruit_BME280' has not been declared bool Adafruit_BME280::begin(TwoWire theWire) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: In function 'bool begin(TwoWire)': /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:77:2: error: '_wire' was not declared in this scope _wire = theWire; ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:78:2: error: '_i2caddr' was not declared in this scope _i2caddr = BME280_ADDRESS; ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:78:13: error: 'BME280_ADDRESS' was not declared in this scope _i2caddr = BME280_ADDRESS; ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:79:14: error: void value not ignored as it ought to be return init(); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: At global scope: /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:89:6: error: 'Adafruit_BME280' has not been declared bool Adafruit_BME280::begin(uint8_t addr) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: In function 'bool begin(uint8_t)': /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:91:2: error: '_i2caddr' was not declared in this scope _i2caddr = addr; ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:92:2: error: '_wire' was not declared in this scope _wire = &Wire; ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:93:14: error: void value not ignored as it ought to be return init(); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: At global scope: /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:104:6: error: 'Adafruit_BME280' has not been declared bool Adafruit_BME280::begin(uint8_t addr, TwoWire theWire) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: In function 'bool begin(uint8_t, TwoWire)': /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:106:5: error: '_i2caddr' was not declared in this scope _i2caddr = addr; ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:107:2: error: '_wire' was not declared in this scope _wire = theWire; ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:108:14: error: void value not ignored as it ought to be return init(); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: At global scope: /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:117:6: error: 'Adafruit_BME280' has not been declared bool Adafruit_BME280::begin(void) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: In function 'bool begin()': /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:119:5: error: '_i2caddr' was not declared in this scope _i2caddr = BME280_ADDRESS; ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:119:16: error: 'BME280_ADDRESS' was not declared in this scope _i2caddr = BME280_ADDRESS; ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:120:2: error: '_wire' was not declared in this scope _wire = &Wire; ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:121:14: error: void value not ignored as it ought to be return init(); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: At global scope: /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:130:6: error: 'Adafruit_BME280' has not been declared bool Adafruit_BME280::init() ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: In function 'bool init()': /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:130:28: error: ambiguating new declaration of 'bool init()' bool Adafruit_BME280::init() ^ In file included from /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:30:0: /home/comodo/.arduino15/packages/esp32/hardware/esp32/1.0.1/cores/esp32/Arduino.h:135:6: note: old declaration 'void init()' void init(void); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:133:9: error: '_cs' was not declared in this scope if (_cs == -1) { ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:135:9: error: '_wire' was not declared in this scope _wire -> begin(); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:139:13: error: '_sck' was not declared in this scope if (_sck == -1) { ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:145:21: error: '_mosi' was not declared in this scope pinMode(_mosi, OUTPUT); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:146:21: error: '_miso' was not declared in this scope pinMode(_miso, INPUT); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:151:15: error: 'BME280_REGISTER_CHIPID' was not declared in this scope if (read8(BME280_REGISTER_CHIPID) != 0x60) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:151:37: error: 'read8' was not declared in this scope if (read8(BME280_REGISTER_CHIPID) != 0x60) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:156:12: error: 'BME280_REGISTER_SOFTRESET' was not declared in this scope write8(BME280_REGISTER_SOFTRESET, 0xB6); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:156:43: error: 'write8' was not declared in this scope write8(BME280_REGISTER_SOFTRESET, 0xB6); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:162:33: error: 'isReadingCalibration' was not declared in this scope while (isReadingCalibration()) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:165:22: error: 'readCoefficients' was not declared in this scope readCoefficients(); // read trimming parameters, see DS 4.2.2 ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:167:17: error: 'setSampling' was not declared in this scope setSampling(); // use defaults ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: At global scope: /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:188:6: error: 'Adafruit_BME280' has not been declared void Adafruit_BME280::setSampling(sensor_mode mode, ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:188:35: error: variable or field 'setSampling' declared void void Adafruit_BME280::setSampling(sensor_mode mode, ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:188:35: error: 'sensor_mode' was not declared in this scope /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:189:4: error: 'sensor_sampling' was not declared in this scope sensor_sampling tempSampling, ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:190:4: error: 'sensor_sampling' was not declared in this scope sensor_sampling pressSampling, ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:191:4: error: 'sensor_sampling' was not declared in this scope sensor_sampling humSampling, ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:192:4: error: 'sensor_filter' was not declared in this scope sensor_filter filter, ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:193:4: error: 'standby_duration' was not declared in this scope standby_duration duration) { ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:219:9: error: 'Adafruit_BME280' has not been declared uint8_t Adafruit_BME280::spixfer(uint8_t x) { ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: In function 'uint8_t spixfer(uint8_t)': /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:221:9: error: '_sck' was not declared in this scope if (_sck == -1) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:228:22: error: '_sck' was not declared in this scope digitalWrite(_sck, LOW); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:229:22: error: '_mosi' was not declared in this scope digitalWrite(_mosi, x & (1<<i)); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:231:25: error: '_miso' was not declared in this scope if (digitalRead(_miso)) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: At global scope: /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:245:6: error: 'Adafruit_BME280' has not been declared void Adafruit_BME280::write8(byte reg, byte value) { ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: In function 'void write8(byte, byte)': /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:246:9: error: '_cs' was not declared in this scope if (_cs == -1) { ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:247:9: error: '_wire' was not declared in this scope _wire -> beginTransmission((uint8_t)_i2caddr); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:247:45: error: '_i2caddr' was not declared in this scope _wire -> beginTransmission((uint8_t)_i2caddr); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:252:13: error: '_sck' was not declared in this scope if (_sck == -1) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:258:9: error: '_sck' was not declared in this scope if (_sck == -1) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: At global scope: /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:271:9: error: 'Adafruit_BME280' has not been declared uint8_t Adafruit_BME280::read8(byte reg) { ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: In function 'uint8_t read8(byte)': /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:274:9: error: '_cs' was not declared in this scope if (_cs == -1) { ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:275:9: error: '_wire' was not declared in this scope _wire -> beginTransmission((uint8_t)_i2caddr); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:275:45: error: '_i2caddr' was not declared in this scope _wire -> beginTransmission((uint8_t)_i2caddr); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:281:13: error: '_sck' was not declared in this scope if (_sck == -1) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:287:13: error: '_sck' was not declared in this scope if (_sck == -1) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: At global scope: /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:301:10: error: 'Adafruit_BME280' has not been declared uint16_t Adafruit_BME280::read16(byte reg) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: In function 'uint16_t read16(byte)': /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:305:9: error: '_cs' was not declared in this scope if (_cs == -1) { ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:306:9: error: '_wire' was not declared in this scope _wire -> beginTransmission((uint8_t)_i2caddr); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:306:45: error: '_i2caddr' was not declared in this scope _wire -> beginTransmission((uint8_t)_i2caddr); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:312:13: error: '_sck' was not declared in this scope if (_sck == -1) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:318:13: error: '_sck' was not declared in this scope if (_sck == -1) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: At global scope: /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:333:10: error: 'Adafruit_BME280' has not been declared uint16_t Adafruit_BME280::read16_LE(byte reg) { ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:346:9: error: 'Adafruit_BME280' has not been declared int16_t Adafruit_BME280::readS16(byte reg) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:359:9: error: 'Adafruit_BME280' has not been declared int16_t Adafruit_BME280::readS16_LE(byte reg) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:372:10: error: 'Adafruit_BME280' has not been declared uint32_t Adafruit_BME280::read24(byte reg) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: In function 'uint32_t read24(byte)': /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:376:9: error: '_cs' was not declared in this scope if (_cs == -1) { ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:377:9: error: '_wire' was not declared in this scope _wire -> beginTransmission((uint8_t)_i2caddr); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:377:45: error: '_i2caddr' was not declared in this scope _wire -> beginTransmission((uint8_t)_i2caddr); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:388:13: error: '_sck' was not declared in this scope if (_sck == -1) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:400:13: error: '_sck' was not declared in this scope if (_sck == -1) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: At global scope: /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:413:6: error: 'Adafruit_BME280' has not been declared void Adafruit_BME280::takeForcedMeasurement() ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: In function 'void takeForcedMeasurement()': /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:419:9: error: '_measReg' was not declared in this scope if (_measReg.mode == MODE_FORCED) { ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:419:26: error: 'MODE_FORCED' was not declared in this scope if (_measReg.mode == MODE_FORCED) { ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:421:16: error: 'BME280_REGISTER_CONTROL' was not declared in this scope write8(BME280_REGISTER_CONTROL, _measReg.get()); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:424:22: error: 'BME280_REGISTER_STATUS' was not declared in this scope while (read8(BME280_REGISTER_STATUS) & 0x08) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: At global scope: /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:435:6: error: 'Adafruit_BME280' has not been declared void Adafruit_BME280::readCoefficients(void) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: In function 'void readCoefficients()': /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:437:5: error: '_bme280_calib' was not declared in this scope _bme280_calib.dig_T1 = read16_LE(BME280_REGISTER_DIG_T1); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:437:38: error: 'BME280_REGISTER_DIG_T1' was not declared in this scope _bme280_calib.dig_T1 = read16_LE(BME280_REGISTER_DIG_T1); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:438:39: error: 'BME280_REGISTER_DIG_T2' was not declared in this scope _bme280_calib.dig_T2 = readS16_LE(BME280_REGISTER_DIG_T2); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:439:39: error: 'BME280_REGISTER_DIG_T3' was not declared in this scope _bme280_calib.dig_T3 = readS16_LE(BME280_REGISTER_DIG_T3); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:441:38: error: 'BME280_REGISTER_DIG_P1' was not declared in this scope _bme280_calib.dig_P1 = read16_LE(BME280_REGISTER_DIG_P1); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:442:39: error: 'BME280_REGISTER_DIG_P2' was not declared in this scope _bme280_calib.dig_P2 = readS16_LE(BME280_REGISTER_DIG_P2); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:443:39: error: 'BME280_REGISTER_DIG_P3' was not declared in this scope _bme280_calib.dig_P3 = readS16_LE(BME280_REGISTER_DIG_P3); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:444:39: error: 'BME280_REGISTER_DIG_P4' was not declared in this scope _bme280_calib.dig_P4 = readS16_LE(BME280_REGISTER_DIG_P4); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:445:39: error: 'BME280_REGISTER_DIG_P5' was not declared in this scope _bme280_calib.dig_P5 = readS16_LE(BME280_REGISTER_DIG_P5); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:446:39: error: 'BME280_REGISTER_DIG_P6' was not declared in this scope _bme280_calib.dig_P6 = readS16_LE(BME280_REGISTER_DIG_P6); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:447:39: error: 'BME280_REGISTER_DIG_P7' was not declared in this scope _bme280_calib.dig_P7 = readS16_LE(BME280_REGISTER_DIG_P7); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:448:39: error: 'BME280_REGISTER_DIG_P8' was not declared in this scope _bme280_calib.dig_P8 = readS16_LE(BME280_REGISTER_DIG_P8); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:449:39: error: 'BME280_REGISTER_DIG_P9' was not declared in this scope _bme280_calib.dig_P9 = readS16_LE(BME280_REGISTER_DIG_P9); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:451:34: error: 'BME280_REGISTER_DIG_H1' was not declared in this scope _bme280_calib.dig_H1 = read8(BME280_REGISTER_DIG_H1); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:452:39: error: 'BME280_REGISTER_DIG_H2' was not declared in this scope _bme280_calib.dig_H2 = readS16_LE(BME280_REGISTER_DIG_H2); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:453:34: error: 'BME280_REGISTER_DIG_H3' was not declared in this scope _bme280_calib.dig_H3 = read8(BME280_REGISTER_DIG_H3); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:454:35: error: 'BME280_REGISTER_DIG_H4' was not declared in this scope _bme280_calib.dig_H4 = (read8(BME280_REGISTER_DIG_H4) << 4) | (read8(BME280_REGISTER_DIG_H4+1) & 0xF); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:455:35: error: 'BME280_REGISTER_DIG_H5' was not declared in this scope _bme280_calib.dig_H5 = (read8(BME280_REGISTER_DIG_H5+1) << 4) | (read8(BME280_REGISTER_DIG_H5) >> 4); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:456:42: error: 'BME280_REGISTER_DIG_H6' was not declared in this scope _bme280_calib.dig_H6 = (int8_t)read8(BME280_REGISTER_DIG_H6); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: At global scope: /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:465:6: error: 'Adafruit_BME280' has not been declared bool Adafruit_BME280::isReadingCalibration(void) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: In function 'bool isReadingCalibration()': /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:467:33: error: 'BME280_REGISTER_STATUS' was not declared in this scope uint8_t const rStatus = read8(BME280_REGISTER_STATUS); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: At global scope: /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:479:7: error: 'Adafruit_BME280' has not been declared float Adafruit_BME280::readTemperature(void) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: In function 'float readTemperature()': /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:483:28: error: 'BME280_REGISTER_TEMPDATA' was not declared in this scope int32_t adc_T = read24(BME280_REGISTER_TEMPDATA); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:488:38: error: '_bme280_calib' was not declared in this scope var1 = ((((adc_T>>3) - ((int32_t)_bme280_calib.dig_T1 <<1))) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:495:5: error: 't_fine' was not declared in this scope t_fine = var1 + var2; ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: At global scope: /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:508:7: error: 'Adafruit_BME280' has not been declared float Adafruit_BME280::readPressure(void) { ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: In function 'float readPressure()': /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:513:28: error: 'BME280_REGISTER_PRESSUREDATA' was not declared in this scope int32_t adc_P = read24(BME280_REGISTER_PRESSUREDATA); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:518:22: error: 't_fine' was not declared in this scope var1 = ((int64_t)t_fine) - 128000; ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:519:35: error: '_bme280_calib' was not declared in this scope var2 = var1 var1 * (int64_t)_bme280_calib.dig_P6; ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: At global scope: /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:545:7: error: 'Adafruit_BME280' has not been declared float Adafruit_BME280::readHumidity(void) { ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: In function 'float readHumidity()': /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:548:28: error: 'BME280_REGISTER_HUMIDDATA' was not declared in this scope int32_t adc_H = read16(BME280_REGISTER_HUMIDDATA); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:554:18: error: 't_fine' was not declared in this scope v_x1_u32r = (t_fine - ((int32_t)76800)); ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:556:48: error: '_bme280_calib' was not declared in this scope v_x1_u32r = (((((adc_H << 14) - (((int32_t)_bme280_calib.dig_H4) << 20) - ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp: At global scope: /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:581:7: error: 'Adafruit_BME280' has not been declared float Adafruit_BME280::readAltitude(float seaLevel) ^ /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.cpp:604:7: error: 'Adafruit_BME280' has not been declared float Adafruit_BME280::seaLevelForAltitude(float altitude, float atmospheric) ^ Se encontraron varias bibliotecas para "SPI.h" Usado: /home/comodo/.arduino15/packages/esp32/hardware/esp32/1.0.1/libraries/SPI No usado: /home/comodo/arduino/libraries/SPI exit status 1 Error compilando para la tarjeta ESP32 Wrover Module.
yes this library location /home/comodo/Documentos/Arduino/libraries/Adafruit_BME280_Library/Adafruit_BME280.h
Hello, I did the last thing you said and uncomment #include "Adafruit_BME280.h" line 29 of the Adafruit_BME280.cpp library file and it works thanks so much and sorry for the inconvenience
Hello sorry, I have the same error but I comment what you say and I use ESP32 Wrover Module but it tells me an error of compiling a card, I do not know what to do thanks.