diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-10-28 21:08:06 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-10-28 21:08:06 -0300 |
| commit | 0c5b080efac82b1d196e3dde00e5950c97ecbb68 (patch) | |
| tree | 9cab7ac15860270014c45f76c661d50e5be689f2 /esp/src/bmp280.cpp | |
| parent | 7ccab61c22fafb3bb9fa5470ff8cb46217111fe4 (diff) | |
feat:leitura assÃncrona de leitores
Diffstat (limited to 'esp/src/bmp280.cpp')
| -rw-r--r-- | esp/src/bmp280.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/esp/src/bmp280.cpp b/esp/src/bmp280.cpp deleted file mode 100644 index 0ba749a..0000000 --- a/esp/src/bmp280.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include <Wire.h> -#include <Adafruit_BMP280.h> -#include "bmp280.h" - -Adafruit_BMP280 bmp; - -void setupBMP280() { - if (!bmp.begin(0x76)) { - Serial.println("BMP280 nao achado"); - while (1); - } -} - -float lerTemperaturaBMP280() { - return bmp.readTemperature(); -} - -float lerPressaoBMP280() { - return bmp.readPressure() / 100.0F; -} |
