Chip-cn-dat/HLW-dat/HLW8032-dat/HLW8032-reg-dat/HLW8032-reg-dat.md
... ...
@@ -71,3 +71,11 @@ Therefore, the effective voltage is approximately 219.372V.
71 71
| PF register | 00 01 | 0 1 |
72 72
| CheckSum register | DC | 139 |
73 73
74
+read into dec from [[hex-dat]]
75
+
76
+ unsigned long voltageParam = ((unsigned long)vpReg[0] << 16) | ((unsigned long)vpReg[1] << 8) | vpReg[2];
77
+
78
+
79
+## demo code
80
+
81
+- [[hlw8032-1.ino]]
... ...
\ No newline at end of file
Tech-dat/data-dat/data-dat.md
... ...
@@ -0,0 +1,4 @@
1
+
2
+# data-dat
3
+
4
+- [[hex-dat]]
... ...
\ No newline at end of file
Tech-dat/data-dat/hex-dat/hex-dat.md
... ...
@@ -0,0 +1,13 @@
1
+
2
+# hex-dat.md
3
+
4
+
5
+Transmission order of data: High 8bit - > middle 8bit - > low 8bit
6
+
7
+read into dec from [[hex-dat]]
8
+
9
+ unsigned long voltageParam = ((unsigned long)vpReg[0] << 16) | ((unsigned long)vpReg[1] << 8) | vpReg[2];
10
+
11
+## ref
12
+
13
+- [[data-dat]]
... ...
\ No newline at end of file