@@ -7,10 +7,10 @@ class ContrlService {
// 寄存器地址
this.ADR = 0x48
// 电位器地址->对应模块in1,in2
- this.P1 = 0x40
- this.P2 = 0x41
- this.P3 = 0x42
- this.P4 = 0x43
+ this.P1 = 0x42 //左边上下0x43 V1=P1=43
+ this.P2 = 0x40 //右边上下0x41 V2=P2=41
+ this.P3 = 0x41 //右边左右0x40 V3=P3=40
+ this.P4 = 0x43 //左边左右0x42 V0=P4=42
this.run()
}
@@ -12,6 +12,7 @@
"author": "",
"license": "ISC",
"dependencies": {
+ "express": "^4.18.1",
"socket.io": "^4.4.1",
"i2c-bus": "^5.2.2"