bmp180 is on pins 12 14
This commit is contained in:
parent
11bb75e45b
commit
45fac78797
@ -1,6 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#ifdef ENABLE_BMP180
|
#ifdef ENABLE_BMP180
|
||||||
#include <SFE_BMP180.h>
|
#include <SFE_BMP180.h>
|
||||||
|
#include "debug_sketch.h"
|
||||||
|
|
||||||
// Get Current altitude with http://fr.mygeoposition.com/
|
// Get Current altitude with http://fr.mygeoposition.com/
|
||||||
#define ALTITUDE 130
|
#define ALTITUDE 130
|
||||||
@ -15,6 +16,6 @@ bool BMP180IsConnected();
|
|||||||
#else //ENABLE_BMP80
|
#else //ENABLE_BMP80
|
||||||
int BMP180GetTemperature(double &t){return 0;};
|
int BMP180GetTemperature(double &t){return 0;};
|
||||||
int BMP180GetTempAndPressure(double &t, double &p){return 0;};
|
int BMP180GetTempAndPressure(double &t, double &p){return 0;};
|
||||||
int BMP180Setup(int , int ){return 0;};
|
int BMP180Setup(int , int ){SKETCH_DEBUG_PRINTLN("BMP180 is disabled at build time"); return 0;};
|
||||||
bool BMP180IsConnected(){return 0;};
|
bool BMP180IsConnected(){return 0;};
|
||||||
#endif
|
#endif
|
||||||
|
@ -14,7 +14,7 @@ char pressureFeed[FEED_MAX_SIZE] = {};
|
|||||||
|
|
||||||
// Should have less that MAXSUBSCRIPTIONS elements
|
// Should have less that MAXSUBSCRIPTIONS elements
|
||||||
// MAXSUBSCRIPTIONS is defined is Adafruit_mqtt.h
|
// MAXSUBSCRIPTIONS is defined is Adafruit_mqtt.h
|
||||||
const int gpioWatched[] = {12, 13};
|
const int gpioWatched[] = {2, 13};
|
||||||
|
|
||||||
#define GPIO_FEED_FORMAT "/feeds/%s/gpio/%d"
|
#define GPIO_FEED_FORMAT "/feeds/%s/gpio/%d"
|
||||||
#define GPIO_SET_FEED_FORMAT "/feeds/%s/gpio/%d/set"
|
#define GPIO_SET_FEED_FORMAT "/feeds/%s/gpio/%d/set"
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#define ENABLE_BMP180
|
#define ENABLE_BMP180
|
||||||
|
#define SKETCH_DEBUG
|
||||||
|
|
||||||
#include "debug_sketch.h"
|
#include "debug_sketch.h"
|
||||||
#include "BMP180.h"
|
#include "BMP180.h"
|
||||||
|
|
||||||
@ -36,7 +38,7 @@ char eeprom[EEPROM_SIZE];
|
|||||||
#define SAMPLING_PERIODE_MS 60000
|
#define SAMPLING_PERIODE_MS 60000
|
||||||
|
|
||||||
/* I2C pin used*/
|
/* I2C pin used*/
|
||||||
#define SDA 2
|
#define SDA 12
|
||||||
#define SCL 14
|
#define SCL 14
|
||||||
|
|
||||||
#define BOOTMODE_SETUP 0
|
#define BOOTMODE_SETUP 0
|
||||||
|
Loading…
Reference in New Issue
Block a user