cleanup code

This commit is contained in:
Harald Pichler 2017-02-23 22:36:32 +01:00
parent 6677fac2ab
commit 4151c09e2c

View file

@ -24,12 +24,10 @@ float bmptemp;
float bmppress;
float bmpatm;
float bmpalt;
float bmphum;
char bmptemp_s[8];
char bmppress_s[10];
char bmpatm_s[8];
char bmpalt_s[8];
char bmphum_s[8];
char bmpalt_s[8];;
#define SEALEVELPRESSURE_HPA (1013.25)
Adafruit_BMP280 bme; // I2C
@ -39,12 +37,11 @@ Adafruit_BMP280 bme; // I2C
void setup (void)
{
bool status;
// switch off the led
pinMode(LED_PIN, OUTPUT);
digitalWrite(LED_PIN, HIGH);
bool status;
// default settings
status = bme.begin(0x76);
if (!status) {