Skip to content

Commit

Permalink
updates libs
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Apr 1, 2024
1 parent 7b0b7da commit b16e4da
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
8 changes: 4 additions & 4 deletions include/YaSolRMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -441,23 +441,23 @@
#endif

#ifndef YASOLR_JSY_RX_PIN
#define YASOLR_JSY_RX_PIN 17
#define YASOLR_JSY_RX_PIN 16
#endif

#ifndef YASOLR_JSY_TX_PIN
#define YASOLR_JSY_TX_PIN 16
#define YASOLR_JSY_TX_PIN 17
#endif

#ifndef YASOLR_JSY_SERIAL
#define YASOLR_JSY_SERIAL Serial2
#endif

#ifndef YASOLR_PZEM_RX_PIN
#define YASOLR_PZEM_RX_PIN 27
#define YASOLR_PZEM_RX_PIN 14
#endif

#ifndef YASOLR_PZEM_TX_PIN
#define YASOLR_PZEM_TX_PIN 14
#define YASOLR_PZEM_TX_PIN 27
#endif

#ifndef YASOLR_PZEM_SERIAL
Expand Down
12 changes: 6 additions & 6 deletions include/YaSolRWebsite.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ namespace YaSolR {

// Electricity meter configuration
Card _jsy = Card(&dashboard, BUTTON_CARD, "JSY");
Card _jsyRXPin = Card(&dashboard, TEXT_INPUT_CARD, "JSY RX Pin (Serial TX)");
Card _jsyTXPin = Card(&dashboard, TEXT_INPUT_CARD, "JSY TX Pin (Serial RX)");
Card _jsyRXPin = Card(&dashboard, TEXT_INPUT_CARD, "JSY TX Pin (Serial RX)");
Card _jsyTXPin = Card(&dashboard, TEXT_INPUT_CARD, "JSY RX Pin (Serial TX)");
Card _jsyReset = Card(&dashboard, PUSH_BUTTON_CARD, "JSY Reset Energy");
Card _zcd = Card(&dashboard, BUTTON_CARD, "ZCD");
Card _zcdPin = Card(&dashboard, TEXT_INPUT_CARD, "ZCD Sync Pin");
Expand Down Expand Up @@ -256,8 +256,8 @@ namespace YaSolR {
Card _output1AutoStoptTime = Card(&dashboard, TEXT_INPUT_CARD, "Auto Stop Time");

Card _output1PZEM = Card(&dashboard, BUTTON_CARD, "PZEM-004T v3");
Card _output1PZEMRXPin = Card(&dashboard, TEXT_INPUT_CARD, "PZEM RX Pin (Serial TX)");
Card _output1PZEMTXPin = Card(&dashboard, TEXT_INPUT_CARD, "PZEM TX Pin (Serial RX)");
Card _output1PZEMRXPin = Card(&dashboard, TEXT_INPUT_CARD, "PZEM TX Pin (Serial RX)");
Card _output1PZEMTXPin = Card(&dashboard, TEXT_INPUT_CARD, "PZEM RX Pin (Serial TX)");
Card _output1PZEMSync = Card(&dashboard, PUSH_BUTTON_CARD, "PZEM Pairing");
Card _output1PZEMReset = Card(&dashboard, PUSH_BUTTON_CARD, "PZEM Reset Energy");

Expand All @@ -283,8 +283,8 @@ namespace YaSolR {
Card _output2AutoStoptTime = Card(&dashboard, TEXT_INPUT_CARD, "Auto Stop Time");

Card _output2PZEM = Card(&dashboard, BUTTON_CARD, "PZEM-004T v3");
Card _output2PZEMRXPin = Card(&dashboard, TEXT_INPUT_CARD, "PZEM RX Pin (Serial TX)");
Card _output2PZEMTXPin = Card(&dashboard, TEXT_INPUT_CARD, "PZEM TX Pin (Serial RX)");
Card _output2PZEMRXPin = Card(&dashboard, TEXT_INPUT_CARD, "PZEM TX Pin (Serial RX)");
Card _output2PZEMTXPin = Card(&dashboard, TEXT_INPUT_CARD, "PZEM RX Pin (Serial TX)");
Card _output2PZEMSync = Card(&dashboard, PUSH_BUTTON_CARD, "PZEM Pairing");
Card _output2PZEMReset = Card(&dashboard, PUSH_BUTTON_CARD, "PZEM Reset Energy");

Expand Down
7 changes: 4 additions & 3 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ lib_deps =
mathieucarbou/MycilaConfig @ 1.4.0
mathieucarbou/MycilaEasyDisplay @ 1.0.2
mathieucarbou/MycilaESPConnect @ 3.2.7
mathieucarbou/MycilaJSY @ 6.0.4
mathieucarbou/MycilaJSY @ 7.0.0
mathieucarbou/MycilaLogger @ 2.2.0
mathieucarbou/MycilaMQTT @ 3.0.1
mathieucarbou/MycilaNTP @ 2.2.2
mathieucarbou/MycilaPZEM004Tv3 @ 1.1.6
mathieucarbou/MycilaPZEM004Tv3 @ 2.0.0
mathieucarbou/MycilaRelay @ 3.0.1
mathieucarbou/MycilaTaskManager @ 1.2.5
mathieucarbou/MycilaTaskMonitor @ 2.0.0
Expand Down Expand Up @@ -382,7 +382,8 @@ build_flags =
-D YASOLR_BUTTON_PIN=39
-D YASOLR_OUTPUT1_RELAY_PIN=40
-D YASOLR_BUZZER_PIN=8
-D YASOLR_PZEM_RX_PIN=11
-D YASOLR_PZEM_RX_PIN=14
-D YASOLR_PZEM_TX_PIN=11

[env:oss-esp32s3]
extends = env:oss-esp32
Expand Down

0 comments on commit b16e4da

Please sign in to comment.