change CT behavior
This commit is contained in:
parent
b5689804b6
commit
0e614c960a
2 changed files with 21 additions and 39 deletions
|
|
@ -28,7 +28,7 @@ SET_LOOP_TASK_STACK_SIZE(32*1024);
|
|||
|
||||
// CT Configuration
|
||||
#define CT_FORCE_ENABLE false
|
||||
#define CT_RMS_VOLTAGE 220.0
|
||||
#define CT_RMS_VOLTAGE 1.0
|
||||
#define CT_PIN_LIGHT_PHASE1 0
|
||||
#define CT_PIN_LIGHT_PHASE2 1
|
||||
#define CT_PIN_SOCKET 2
|
||||
|
|
@ -36,8 +36,6 @@ SET_LOOP_TASK_STACK_SIZE(32*1024);
|
|||
#define CT_PIN_AC_PHASE2 4
|
||||
#define CT_PIN_AC_PHASE3 5
|
||||
|
||||
float adcToCurrent(uint16_t adc_value);
|
||||
|
||||
void handleMqttMessage(char *topic, char *payload);
|
||||
void subscribeToMqttTopics();
|
||||
void handlePageChange(uint8_t page);
|
||||
|
|
@ -61,4 +59,5 @@ void pm25inupdatedisplay(char* value);
|
|||
void tempoutupdatedisplay(char* value);
|
||||
void weatherupdatedisplay(char* value);
|
||||
void pmfanspeedupdatedisplay(char* value);
|
||||
void pmswitchupdatedisplay(char* value);
|
||||
void pmswitchupdatedisplay(char* value);
|
||||
float adc2current(uint16_t adc_val);
|
||||
Loading…
Add table
Add a link
Reference in a new issue