34 lines
No EOL
846 B
C++
34 lines
No EOL
846 B
C++
#pragma once
|
|
#include <ESPMegaProOS.hpp>
|
|
#include <ise_display.hpp>
|
|
#include <ir_codes.hpp>
|
|
|
|
/***********************************************
|
|
* Begin Configuration *
|
|
************************************************/
|
|
|
|
// Display Configuration
|
|
#define iseDisplayAdapter Serial2
|
|
#define ISE_DISPLAY_BAUD_RATE 115200
|
|
#define ISE_DISPLAY_TX_PIN 4
|
|
#define ISE_DISPLAY_RX_PIN 17
|
|
|
|
// Air Conditioner Configuration
|
|
#define AIR_CONDITIONER_SENSOR_TYPE AC_SENSOR_TYPE_DHT22
|
|
#define AIR_CONDITIONER_SENSOR_PIN 32
|
|
#define AIR_CONDITIONER_IR_PIN 5
|
|
#define AIR_CONDITIONER_RMT_CHANNEL RMT_CHANNEL_0
|
|
|
|
void handleMqttMessage(char *topic, char *payload);
|
|
void lockAC();
|
|
void unlockAC();
|
|
|
|
void sendStopBytes();
|
|
void sendExtStopBytes();
|
|
|
|
void setup();
|
|
void loop();
|
|
|
|
void on_pin_change(uint8_t pin, uint8_t value);
|
|
|
|
uint16_t get_pm25_out(); |