update library, CT now compiles
This commit is contained in:
parent
581a5b4fd0
commit
89aac84cf8
3 changed files with 3 additions and 3 deletions
|
|
@ -12,7 +12,7 @@
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
board = wt32-eth01
|
board = wt32-eth01
|
||||||
framework = arduino
|
framework = arduino
|
||||||
lib_deps = siwats/ESPMegaPROR3@^2.3.6
|
lib_deps = siwats/ESPMegaPROR3@^2.3.7
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
build_flags = -DCORE_DEBUG_LEVEL=0
|
build_flags = -DCORE_DEBUG_LEVEL=0
|
||||||
upload_port = COM32
|
upload_port = COM32
|
||||||
|
|
|
||||||
|
|
@ -46,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
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ SET_LOOP_TASK_STACK_SIZE(32*1024);
|
||||||
// Air Conditioner Configuration
|
// Air Conditioner Configuration
|
||||||
#define AIR_CONDITIONER_SENSOR_TYPE AC_SENSOR_TYPE_DHT22
|
#define AIR_CONDITIONER_SENSOR_TYPE AC_SENSOR_TYPE_DHT22
|
||||||
#define AIR_CONDITIONER_SENSOR_PIN 32
|
#define AIR_CONDITIONER_SENSOR_PIN 32
|
||||||
#define AIR_CONDITIONER_IR_PIN
|
#define AIR_CONDITIONER_IR_PIN 5
|
||||||
#define AIR_CONDITIONER_RMT_CHANNEL RMT_CHANNEL_0
|
#define AIR_CONDITIONER_RMT_CHANNEL RMT_CHANNEL_0
|
||||||
|
|
||||||
void handleMqttMessage(char *topic, char *payload);
|
void handleMqttMessage(char *topic, char *payload);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue