update ids
This commit is contained in:
parent
2ca65ec643
commit
c718750c45
4 changed files with 84 additions and 49 deletions
|
|
@ -8,12 +8,12 @@
|
|||
// Display Configuration
|
||||
#define cudDisplayAdapter Serial2
|
||||
#define CUD_DISPLAY_BAUD_RATE 115200
|
||||
#define CUD_DISPLAY_TX_PIN 16
|
||||
#define CUD_DISPLAY_TX_PIN 4
|
||||
#define CUD_DISPLAY_RX_PIN 17
|
||||
|
||||
//Air Conditioner Configuration
|
||||
#define AIR_CONDITIONER_SENSOR_TYPE AC_SENSOR_TYPE_DHT22
|
||||
#define AIR_CONDITIONER_SENSOR_PIN 4
|
||||
#define AIR_CONDITIONER_SENSOR_PIN 32
|
||||
#define AIR_CONDITIONER_IR_PIN 5
|
||||
#define AIR_CONDITIONER_RMT_CHANNEL RMT_CHANNEL_0
|
||||
|
||||
|
|
@ -58,6 +58,7 @@ void setup() {
|
|||
climateCard.bindFRAM(&espmega.fram, 5000);
|
||||
climateCard.loadStateFromFRAM();
|
||||
climateCard.setFRAMAutoSave(true);
|
||||
espmega.display->bindClimateCard(&climateCard);
|
||||
espmega.iot->registerCard(3);
|
||||
cudDisplayAdapter.begin(CUD_DISPLAY_BAUD_RATE, SERIAL_8N1, CUD_DISPLAY_RX_PIN, CUD_DISPLAY_TX_PIN);
|
||||
auto bindedGetTime = std::bind(&ESPMegaPRO::getTime, &espmega);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue