summaryrefslogtreecommitdiff
path: root/esp/src/bmp280.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'esp/src/bmp280.cpp')
-rw-r--r--esp/src/bmp280.cpp20
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;
-}