• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Adafruit bme 280 or 680 error with platformio

Q&A Forum › Category: ESP32 › Adafruit bme 280 or 680 error with platformio
0 Vote Up Vote Down
pthiercelin asked 2 years ago

Dear all
I am following the ebook Build_Web_Servers_ESP32_ESP8266_V2 with vs code and platform io.
with a heltec_wifi_kit_32 card.
My problem:
I tried with blink program for validate the environment and was perfect
after I installed the adafruit bme 280 with adafruit unified sensor
I did the upload process and received the messsage:
In file included from .pio\libdeps\heltec_wifi_kit_32\Adafruit BME280 Library\Adafruit_BME280.cpp:31:0:
.pio\libdeps\heltec_wifi_kit_32\Adafruit BME280 Library\Adafruit_BME280.h:26:29: fatal error: Adafruit_Sensor.h: No such file or directory
*************************************************************************
* Looking for Adafruit_Sensor.h dependency? Check our library registry!
* CLI > platformio lib search “header:Adafruit_Sensor.h”
* Web > https://platformio.org/lib/search?query=header:Adafruit_Sensor.h
*************************************************************************
compilation terminated.
Please can you help me?
Thanks in advance

1 Answers
1 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
In that section of the eBook, it shows how you would proceed if you wanted to include a library.
If you don’t use it in your sketch, you’ll get an error.
You should also include it in your sketch:

#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>

I’m sorry that it is not clear.
Let me know if this answers your question.
Regards,
Sara
 

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023
  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.1) November 20, 2022

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.