Some cosmetics
This commit is contained in:
@ -1,24 +1,23 @@
|
||||
#include <SD.h>
|
||||
#include <Wire.h>
|
||||
#include "BMP085.h"
|
||||
#include "Chronodot.h"
|
||||
#include "DHT.h"
|
||||
#include "TSL2561.h"
|
||||
#include "Chronodot.h"
|
||||
|
||||
#define TIMING 1000 // milliseconds
|
||||
#define DHTPIN 2
|
||||
#define DHTTYPE DHT22
|
||||
#define SDPIN 4
|
||||
|
||||
BMP085 bmp;
|
||||
DHT dht(DHTPIN, DHTTYPE);
|
||||
TSL2561 tsl(TSL2561_ADDR_FLOAT);
|
||||
BMP085 bmp;
|
||||
DHT dht(DHTPIN, DHTTYPE);
|
||||
TSL2561 tsl(TSL2561_ADDR_FLOAT);
|
||||
Chronodot chronodot;
|
||||
File file;
|
||||
File file;
|
||||
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
pinMode(5, OUTPUT);
|
||||
|
||||
//----- SD Card
|
||||
Serial.println("INIT SD Card");
|
||||
@ -33,9 +32,9 @@ void setup() {
|
||||
Serial.println("INIT Sensors");
|
||||
|
||||
bmp.begin();
|
||||
chronodot.begin();
|
||||
dht.begin();
|
||||
tsl.begin();
|
||||
chronodot.begin();
|
||||
|
||||
// You can change the gain on the fly, to adapt to brighter/dimmer light situations
|
||||
//tsl.setGain(TSL2561_GAIN_0X); // set no gain (for bright situtations)
|
||||
|
Reference in New Issue
Block a user