Browse Source

Copy over HJL-01 parameters from another device

ota
Richard Lin 6 years ago
parent
commit
2929425a2b
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      code/espurna/config/hardware.h

+ 5
- 4
code/espurna/config/hardware.h View File

@ -1956,10 +1956,11 @@
#define HLW8012_CF1_PIN 14 #define HLW8012_CF1_PIN 14
#define HLW8012_CF_PIN 5 #define HLW8012_CF_PIN 5
#define HLW8012_CURRENT_R 0.001 // Current resistor
#define HLW8012_VOLTAGE_R_UP ( 2 * 1200000 ) // Upstream voltage resistor
#define HLW8012_SEL_CURRENT LOW
#define HLW8012_INTERRUPT_ON FALLING
#define HLW8012_SEL_CURRENT LOW
#define HLW8012_CURRENT_RATIO 25740
#define HLW8012_VOLTAGE_RATIO 313400
#define HLW8012_POWER_RATIO 3414290
#define HLW8012_INTERRUPT_ON FALLING
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// TONBUX XS-SSA06 // TONBUX XS-SSA06


Loading…
Cancel
Save