28 lines
360 B
C
28 lines
360 B
C
#ifndef SENSORS_H
|
|
#define SENSORS_H
|
|
|
|
#ifdef NODE_GREENHOUSE
|
|
|
|
#include "patrix/DHT22.h"
|
|
#include "patrix/Input.h"
|
|
#include "patrix/Output.h"
|
|
#include "patrix/tsl2561.h"
|
|
|
|
extern Input door;
|
|
|
|
extern Input windows;
|
|
|
|
extern Output light;
|
|
|
|
extern TSL2561 greenhouseTSL;
|
|
|
|
extern DHT22Sensor greenhouseDHT22;
|
|
|
|
void sensorsSetup();
|
|
|
|
void sensorsLoop();
|
|
|
|
#endif
|
|
|
|
#endif
|