#ifndef __MAIN__ #define __MAIN__ #include #include #include "MHZ19.h" #define DEBUG #define MY_DEBUG #define MY_RADIO_RF24 #define MY_RF24_CHANNEL (105) #define MY_RF24_PA_LEVEL RF24_PA_MAX #define MY_TRANSPORT_WAIT_READY_MS 5000 //#define MY_REPEATER_FEATURE #define MY_DEFAULT_ERR_LED_PIN (A3) // Error led pin #define MY_DEFAULT_RX_LED_PIN (A2) // Receive led pin #define MY_DEFAULT_TX_LED_PIN (A1) // the PCB, on board LED #include #include // Remove if using HardwareSerial or non-uno compatabile device #include #include void printDeb(String msg); #define RX_PIN 8 #define TX_PIN 7 #define BAUDRATE 9600 #define MOTION (3) #define PS (4) #define LED_WHITE (5) #define LED_BLUE (6) MHZ19 myMHZ19; SoftwareSerial mySerial(RX_PIN, TX_PIN); HTU21D myHTU21D(HTU21D_RES_RH10_TEMP13); RunningMedian samples = RunningMedian(5 * sizeof(int)); //uint8_t periodMinCO2; byte periodMotion; int8_t curDelay; uint16_t spLight, dbLight; uint8_t timeLight; byte levelBlue, levelWhite; bool move, lightWhite; float temp, hum; bool bLamp, wLamp; uint8_t statLamp; #endif