BR add led

This commit is contained in:
2021-02-14 16:45:23 +03:00
parent e156485cb8
commit e1948d3615
2 changed files with 87 additions and 34 deletions

40
BigRoomMyS/include/main.h Normal file
View File

@@ -0,0 +1,40 @@
#ifndef __MAIN__
#define __MAIN__
#include <Arduino.h>
#include <Wire.h>
#include "MHZ19.h"
#define MY_DEBUG
#define MY_RADIO_RF24
#define MY_RF24_CHANNEL (105)
#define MY_RF24_PA_LEVEL RF24_PA_MAX
#define MY_DEFAULT_ERR_LED_PIN (4) // Error led pin
#define MY_DEFAULT_RX_LED_PIN (5) // Receive led pin
#define MY_DEFAULT_TX_LED_PIN (6) // the PCB, on board LED
#include <MySensors.h>
#include <SoftwareSerial.h> // Remove if using HardwareSerial or non-uno compatabile device
#include <HTU21D.h>
#define RX_PIN 8
#define TX_PIN 7
#define BAUDRATE 9600
#define MOTION (7)
#define LED_WHITE (5)
#define LED_BLUE (6)
MHZ19 myMHZ19;
SoftwareSerial mySerial(RX_PIN, TX_PIN);
HTU21D myHTU21D(HTU21D_RES_RH10_TEMP13);
uint8_t periodMinCO2;
uint8_t periodMotion;
uint8_t curDelay;
uint8_t spLight, dbLight;
uint16_t levelBlue, levelWhite;
bool move, lightWhite;
#endif