summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven <steven.vasilogianis@gmail.com>2021-10-05 21:24:08 -0400
committerSteven <steven.vasilogianis@gmail.com>2021-10-05 21:24:08 -0400
commita6ac5a6e71fa4feadc60b9932eb898d59ca2f337 (patch)
tree5e2e3bd6580b83c6010409b8d2ef3735674ed77d
parent0848a13c38d2f54c91a1e98e114fd49e3f4c8a70 (diff)
index on master: 0848a13 Add photoresistor support
-rw-r--r--src/main/main.ino10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/main.ino b/src/main/main.ino
index a435473..529cca1 100644
--- a/src/main/main.ino
+++ b/src/main/main.ino
@@ -1,3 +1,8 @@
1#include "ota.h"
2#include <WiFiClient.h>
3#include <DHT.h>
4#include "CCS811/CCS811.h"
5
1#define TEMP_SENSOR_PIN 12 6#define TEMP_SENSOR_PIN 12
2#define HUMIDITY_SENSOR_PIN 12 7#define HUMIDITY_SENSOR_PIN 12
3#define FAN_PIN 15 8#define FAN_PIN 15
@@ -10,14 +15,9 @@
10#define HUMIDITY_DESIRED 75 15#define HUMIDITY_DESIRED 75
11#define HUMIDITY_VARIATION 3 // ultrasonic turns on at (75 - 3 = 72) and off 16#define HUMIDITY_VARIATION 3 // ultrasonic turns on at (75 - 3 = 72) and off
12 // at (75 + 3 = 78) 17 // at (75 + 3 = 78)
13
14#include "ota.h"
15
16#include <WiFiClient.h>
17WiFiClient *wific = 0; 18WiFiClient *wific = 0;
18 19
19// Tempature + Humidity Sensor 20// Tempature + Humidity Sensor
20#include <DHT.h>
21#define DHTPIN 12 21#define DHTPIN 12
22#define DHTTYPE DHT11 22#define DHTTYPE DHT11
23DHT dht(DHTPIN, DHTTYPE); 23DHT dht(DHTPIN, DHTTYPE);