• 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

bmp280

Q&A Forum › Category: ESP32 › bmp280
0 Vote Up Vote Down
Luis Carlos Triviño Torres asked 1 year ago

Rui and Sara, Greetings

One question, what should I change to the code with the bme280 sensor so that it works with a bmp280 sensor connected to pin 21 and 22

Thank you

Question Tags: ESP32
2 Answers
0 Vote Up Vote Down
Steve Mercer answered 1 year ago

Seeing as the BMP280 is a different sensor you would need a different library and a different API. Use the examples to modify your code accordingly.

0 Vote Up Vote Down
Rui Santos Staff answered 1 year ago

Hello Luis, as Steve suggested you can use the Adafruit BMP280 library and change the code slightly to make it work.
You can use the examples:

  • https://github.com/adafruit/Adafruit_BMP280_Library/tree/master/examples

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] Firebase Web App with ESP32 and ESP8266 (version 1.2) April 25, 2022
  • [eBook Updated] MicroPython Programming with ESP32 and ESP8266 (version 1.3) February 7, 2022

You must be logged in to view this content.

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

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