revert
This commit is contained in:
parent
e17b295849
commit
02b14d2187
4 changed files with 9 additions and 8 deletions
|
|
@ -15,5 +15,5 @@ framework = arduino
|
||||||
lib_deps = siwats/ESPMegaPROR3@^2.3.6
|
lib_deps = siwats/ESPMegaPROR3@^2.3.6
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
build_flags = -DCORE_DEBUG_LEVEL=0
|
build_flags = -DCORE_DEBUG_LEVEL=0
|
||||||
upload_port = COM32
|
upload_port = COM4
|
||||||
monitor_port = COM32
|
monitor_port = COM4
|
||||||
|
|
@ -34,6 +34,7 @@ class ISEDisplay : public ESPMegaDisplay {
|
||||||
void updateTempOutside(float temp_outside);
|
void updateTempOutside(float temp_outside);
|
||||||
void updatePMoutside(u_int16_t pm25_outside);
|
void updatePMoutside(u_int16_t pm25_outside);
|
||||||
void updatePMinside(u_int16_t pm25_inside);
|
void updatePMinside(u_int16_t pm25_inside);
|
||||||
|
void updateACState();
|
||||||
void loop();
|
void loop();
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -72,7 +73,7 @@ class ISEDisplay : public ESPMegaDisplay {
|
||||||
u_int8_t lightLevelRow3;
|
u_int8_t lightLevelRow3;
|
||||||
u_int8_t lightLevelRow4;
|
u_int8_t lightLevelRow4;
|
||||||
|
|
||||||
void updateACState();
|
|
||||||
void updateuserACmode();
|
void updateuserACmode();
|
||||||
void updateACfanSpeed();
|
void updateACfanSpeed();
|
||||||
bool calculateLightGroupState();
|
bool calculateLightGroupState();
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,6 @@ AirConditioner ac = {
|
||||||
.fan_speeds = 4,
|
.fan_speeds = 4,
|
||||||
.fan_speed_names = fan_speed_names,
|
.fan_speed_names = fan_speed_names,
|
||||||
.getInfraredCode = &getInfraredCode};
|
.getInfraredCode = &getInfraredCode};
|
||||||
|
|
||||||
/***********************************************
|
/***********************************************
|
||||||
* End Configuration *
|
* End Configuration *
|
||||||
***********************************************/
|
***********************************************/
|
||||||
|
|
@ -47,7 +46,7 @@ ClimateCard climateCard = ClimateCard(AIR_CONDITIONER_IR_PIN, ac,
|
||||||
AIR_CONDITIONER_SENSOR_TYPE, AIR_CONDITIONER_SENSOR_PIN,
|
AIR_CONDITIONER_SENSOR_TYPE, AIR_CONDITIONER_SENSOR_PIN,
|
||||||
AIR_CONDITIONER_RMT_CHANNEL);
|
AIR_CONDITIONER_RMT_CHANNEL);
|
||||||
|
|
||||||
void adc2current(uint16_t adc_value)
|
float adcToCurrent(uint16_t adc_value)
|
||||||
{
|
{
|
||||||
// 16 bit ADC value to current in amps
|
// 16 bit ADC value to current in amps
|
||||||
// ADC Range is 0-65535, It have an input range of 0-3.3V
|
// ADC Range is 0-65535, It have an input range of 0-3.3V
|
||||||
|
|
@ -129,11 +128,11 @@ void setup()
|
||||||
}
|
}
|
||||||
espmega.outputs.setState(12, true);
|
espmega.outputs.setState(12, true);
|
||||||
espmega.outputs.setValue(12,4095);
|
espmega.outputs.setValue(12,4095);
|
||||||
espmega.installCard(2, &climateCard_daikin);
|
espmega.installCard(2, &climateCard);
|
||||||
climateCard.bindFRAM(&espmega.fram, 5000);
|
climateCard.bindFRAM(&espmega.fram, 5000);
|
||||||
climateCard.loadStateFromFRAM();
|
climateCard.loadStateFromFRAM();
|
||||||
climateCard.setFRAMAutoSave(true);
|
climateCard.setFRAMAutoSave(true);
|
||||||
espmega.display->bindclimateCard(&climateCard);
|
espmega.display->bindClimateCard(&climateCard);
|
||||||
espmega.installCard(4, &ct_light_phase1);
|
espmega.installCard(4, &ct_light_phase1);
|
||||||
espmega.installCard(5, &ct_light_phase2);
|
espmega.installCard(5, &ct_light_phase2);
|
||||||
espmega.installCard(6, &ct_socket);
|
espmega.installCard(6, &ct_socket);
|
||||||
|
|
@ -448,6 +447,7 @@ void handlePageChange(uint8_t page)
|
||||||
iseDisplay.updatePMinside(get_pm25_in());
|
iseDisplay.updatePMinside(get_pm25_in());
|
||||||
iseDisplay.updateWeather(weather.getValue());
|
iseDisplay.updateWeather(weather.getValue());
|
||||||
iseDisplay.updateTempOutside(get_temp_out());
|
iseDisplay.updateTempOutside(get_temp_out());
|
||||||
|
iseDisplay.updateACState();
|
||||||
|
|
||||||
/* iseDisplay.updateACState();
|
/* iseDisplay.updateACState();
|
||||||
iseDisplay.updateAirPurifierState();
|
iseDisplay.updateAirPurifierState();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue