Domotique/WifiControlSensor/BMP180.h

19 lines
607 B
C
Raw Permalink Normal View History

#pragma once
#ifdef CONFIG_ENABLE_BMP180
#include <SFE_BMP180.h>
2016-03-28 23:28:33 +02:00
#include "debug_sketch.h"
// Get Current altitude with http://fr.mygeoposition.com/
#define ALTITUDE 130
int BMP180GetTemperature(double &t);
int BMP180GetTempAndPressure(double &t, double &p);
int BMP180Setup(int sda, int scl);
bool BMP180IsConnected();
#else //CONFIG_ENABLE_BMP80
2017-01-01 23:35:19 +01:00
int BMP180GetTemperature(double &){return -1;};
int BMP180GetTempAndPressure(double &, double &){return -1;};
int BMP180Setup(int , int ){SKETCH_DEBUG_PRINTLN("BMP180 is disabled at build time"); return -1;};
bool BMP180IsConnected(){return false;};
#endif