node-red-contrib-periph-io-expander 1.5.1 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -11
- package/examples/mcp23008/demo.json +45 -27
- package/examples/mcp23017/demo.json +86 -21
- package/examples/pca6408a/demo.json +36 -18
- package/examples/pca6416a/demo.json +36 -18
- package/examples/pca9536/demo.json +27 -9
- package/examples/pca9539/demo.json +36 -18
- package/examples/pcf8574/demo.json +102 -14
- package/examples/pcf8575/demo.json +1 -70
- package/examples/tca9554/demo.json +36 -18
- package/examples/tpic6b595/demo.json +1 -117
- package/nodes/mcp23008/mcp23008.html +55 -33
- package/nodes/mcp23008/mcp23008.js +25 -14
- package/nodes/mcp23017/mcp23017.html +39 -13
- package/nodes/mcp23017/mcp23017.js +17 -11
- package/nodes/pca6408a/pca6408a.html +46 -22
- package/nodes/pca6408a/pca6408a.js +25 -14
- package/nodes/pca6416a/pca6416a.html +46 -22
- package/nodes/pca6416a/pca6416a.js +26 -15
- package/nodes/pca9536/pca9536.html +38 -14
- package/nodes/pca9536/pca9536.js +25 -14
- package/nodes/pca9539/pca9539.html +46 -22
- package/nodes/pca9539/pca9539.js +26 -15
- package/nodes/pcf8574/pcf8574.html +39 -13
- package/nodes/pcf8574/pcf8574.js +17 -11
- package/nodes/pcf8575/pcf8575.html +39 -13
- package/nodes/pcf8575/pcf8575.js +17 -11
- package/nodes/tca9554/tca9554.html +46 -22
- package/nodes/tca9554/tca9554.js +25 -14
- package/nodes/tpic6b595/tpic6b595.html +50 -24
- package/nodes/tpic6b595/tpic6b595.js +19 -13
- package/package.json +24 -14
- package/index.js +0 -11
package/README.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# node-red-contrib-periph-io-expander
|
|
2
2
|
|
|
3
|
-
Node-RED nodes for IO expander chips — part of the [Periph](https://github.com/tuhde/Periph) library.
|
|
3
|
+
Node-RED nodes for IO expander chips: MCP23008, MCP23017, PCA6408A, PCA6416A, PCA9536, PCA9539, PCF8574, PCF8575, TCA9554, TPIC6B595 — part of the [Periph](https://github.com/tuhde/Periph) library.
|
|
4
|
+
|
|
5
|
+
**Supported chips (10):** MCP23008, MCP23017, PCA6408A, PCA6416A, PCA9536, PCA9539, PCF8574, PCF8575, TCA9554, TPIC6B595.
|
|
6
|
+
|
|
7
|
+
Each chip has a sensor/actuator node plus a shared `-device` config node that holds the bus settings. Importable example flows are in [`examples/`](https://github.com/tuhde/Periph/tree/main/nodejs/packages/node-red-contrib-periph-io-expander/examples).
|
|
4
8
|
|
|
5
9
|
## Install
|
|
6
10
|
|
|
@@ -16,16 +20,26 @@ npm install node-red-contrib-periph-io-expander
|
|
|
16
20
|
|
|
17
21
|
| Node | Kind | Description |
|
|
18
22
|
|------|------|-------------|
|
|
19
|
-
| `
|
|
20
|
-
| `
|
|
21
|
-
| `
|
|
22
|
-
| `
|
|
23
|
-
| `
|
|
24
|
-
| `
|
|
25
|
-
| `
|
|
26
|
-
| `
|
|
27
|
-
| `
|
|
28
|
-
| `
|
|
23
|
+
| `mcp23008-device` | config | I²C bus and address for a MCP23008 |
|
|
24
|
+
| `mcp23008` | input | Controls and reads an 8-bit MCP23008 (I²C) or MCP23S08 (SPI) I/O expander. Both chips share one register map and one node. |
|
|
25
|
+
| `mcp23017-device` | config | I²C bus and address for a MCP23017 |
|
|
26
|
+
| `mcp23017` | input | Controls and reads a 16-bit MCP23017 I/O expander over I²C. |
|
|
27
|
+
| `pca6408a-device` | config | I²C bus and address for a PCA6408A |
|
|
28
|
+
| `pca6408a` | input | Controls and reads an 8-bit PCA6408A I/O expander (I²C / SMBus, NXP). The chip has no internal pull-ups: inputs need external pull-up resistors. |
|
|
29
|
+
| `pca6416a-device` | config | I²C bus and address for a PCA6416A |
|
|
30
|
+
| `pca6416a` | input | Controls and reads a 16-bit PCA6416A I/O expander (I²C / SMBus, NXP). The chip has no internal pull-ups: inputs need external pull-up resistors. |
|
|
31
|
+
| `pca9536-device` | config | Bus configuration for a PCA9536 |
|
|
32
|
+
| `pca9536` | input | Controls and reads a 4-bit PCA9536 I/O expander (I²C / SMBus, TI). The chip has the fixed address 0x41 , no interrupt pin, and a weak (about 100 kΩ) pull-up that is always on each pin, so an open input reads 1. |
|
|
33
|
+
| `pca9539-device` | config | I²C bus and address for a PCA9539 |
|
|
34
|
+
| `pca9539` | input | Controls and reads a 16-bit PCA9539 I/O expander (I²C / SMBus, NXP). The chip has no internal pull-ups: inputs need external pull-up resistors. |
|
|
35
|
+
| `pcf8574-device` | config | I²C bus and address for a PCF8574 |
|
|
36
|
+
| `pcf8574` | input | Controls and reads an 8-bit PCF8574 I/O expander over I²C. |
|
|
37
|
+
| `pcf8575-device` | config | I²C bus and address for a PCF8575 |
|
|
38
|
+
| `pcf8575` | input | Controls and reads a 16-bit PCF8575 I/O expander over I²C. |
|
|
39
|
+
| `tca9554-device` | config | I²C bus and address for a TCA9554 |
|
|
40
|
+
| `tca9554` | input | Controls and reads an 8-bit TCA9554 I/O expander (I²C / SMBus, TI). Every input has a fixed internal 100 kΩ pull-up (always on). |
|
|
41
|
+
| `tpic6b595-device` | config | Bus configuration for a TPIC6B595 |
|
|
42
|
+
| `tpic6b595` | input | Drives a Texas Instruments TPIC6B595 8-bit power SIPO shift register (or multiple cascaded devices) through a SiPo (serial-in/parallel-out) connection. SER IN / SRCK may be either an SPI bus (hardware mode) or two plain GPIO lines (software / bit-bang mode); RCK is always a plain GPIO. Optional SRCLR and G lines add shift-register-clear and global output enable (PWM-style dimming). |
|
|
29
43
|
|
|
30
44
|
## Links
|
|
31
45
|
|
|
@@ -40,23 +40,29 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
"id": "
|
|
44
|
-
"type": "
|
|
45
|
-
"
|
|
46
|
-
"name": "Write LEDs",
|
|
47
|
-
"transport": "i2c",
|
|
43
|
+
"id": "mcp23008-device-1",
|
|
44
|
+
"type": "mcp23008-device",
|
|
45
|
+
"name": "MCP23008",
|
|
48
46
|
"bus": "1",
|
|
49
|
-
"address": "20",
|
|
50
|
-
"spiDevice": "0",
|
|
51
47
|
"spiAddr": "0",
|
|
52
|
-
"
|
|
48
|
+
"address": "20",
|
|
53
49
|
"intPin": "",
|
|
50
|
+
"spiDevice": "0",
|
|
54
51
|
"intMask": "F0",
|
|
52
|
+
"transport": "i2c",
|
|
53
|
+
"gpioChip": "0"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "mcp_write",
|
|
57
|
+
"type": "mcp23008",
|
|
58
|
+
"z": "tab_mcp23008_demo",
|
|
59
|
+
"name": "Write LEDs",
|
|
55
60
|
"x": 560,
|
|
56
61
|
"y": 60,
|
|
57
62
|
"wires": [
|
|
58
63
|
[]
|
|
59
|
-
]
|
|
64
|
+
],
|
|
65
|
+
"device": "mcp23008-device-1"
|
|
60
66
|
},
|
|
61
67
|
{
|
|
62
68
|
"id": "inj_port",
|
|
@@ -77,25 +83,31 @@
|
|
|
77
83
|
]
|
|
78
84
|
},
|
|
79
85
|
{
|
|
80
|
-
"id": "
|
|
81
|
-
"type": "
|
|
82
|
-
"
|
|
83
|
-
"name": "Read port",
|
|
84
|
-
"transport": "i2c",
|
|
86
|
+
"id": "mcp23008-device-2",
|
|
87
|
+
"type": "mcp23008-device",
|
|
88
|
+
"name": "MCP23008",
|
|
85
89
|
"bus": "1",
|
|
86
|
-
"address": "20",
|
|
87
|
-
"spiDevice": "0",
|
|
88
90
|
"spiAddr": "0",
|
|
89
|
-
"
|
|
91
|
+
"address": "20",
|
|
90
92
|
"intPin": "",
|
|
93
|
+
"spiDevice": "0",
|
|
91
94
|
"intMask": "F0",
|
|
95
|
+
"transport": "i2c",
|
|
96
|
+
"gpioChip": "0"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"id": "mcp_port",
|
|
100
|
+
"type": "mcp23008",
|
|
101
|
+
"z": "tab_mcp23008_demo",
|
|
102
|
+
"name": "Read port",
|
|
92
103
|
"x": 330,
|
|
93
104
|
"y": 160,
|
|
94
105
|
"wires": [
|
|
95
106
|
[
|
|
96
107
|
"fn_hex"
|
|
97
108
|
]
|
|
98
|
-
]
|
|
109
|
+
],
|
|
110
|
+
"device": "mcp23008-device-2"
|
|
99
111
|
},
|
|
100
112
|
{
|
|
101
113
|
"id": "fn_hex",
|
|
@@ -144,25 +156,31 @@
|
|
|
144
156
|
]
|
|
145
157
|
},
|
|
146
158
|
{
|
|
147
|
-
"id": "
|
|
148
|
-
"type": "
|
|
149
|
-
"
|
|
150
|
-
"name": "Read GP4",
|
|
151
|
-
"transport": "i2c",
|
|
159
|
+
"id": "mcp23008-device-3",
|
|
160
|
+
"type": "mcp23008-device",
|
|
161
|
+
"name": "MCP23008",
|
|
152
162
|
"bus": "1",
|
|
153
|
-
"address": "20",
|
|
154
|
-
"spiDevice": "0",
|
|
155
163
|
"spiAddr": "0",
|
|
156
|
-
"
|
|
164
|
+
"address": "20",
|
|
157
165
|
"intPin": "",
|
|
166
|
+
"spiDevice": "0",
|
|
158
167
|
"intMask": "F0",
|
|
168
|
+
"transport": "i2c",
|
|
169
|
+
"gpioChip": "0"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"id": "mcp_btn",
|
|
173
|
+
"type": "mcp23008",
|
|
174
|
+
"z": "tab_mcp23008_demo",
|
|
175
|
+
"name": "Read GP4",
|
|
159
176
|
"x": 330,
|
|
160
177
|
"y": 260,
|
|
161
178
|
"wires": [
|
|
162
179
|
[
|
|
163
180
|
"dbg_btn"
|
|
164
181
|
]
|
|
165
|
-
]
|
|
182
|
+
],
|
|
183
|
+
"device": "mcp23008-device-3"
|
|
166
184
|
},
|
|
167
185
|
{
|
|
168
186
|
"id": "dbg_btn",
|
|
@@ -15,18 +15,32 @@
|
|
|
15
15
|
"payloadType": "json",
|
|
16
16
|
"x": 120,
|
|
17
17
|
"y": 160,
|
|
18
|
-
"wires": [
|
|
18
|
+
"wires": [
|
|
19
|
+
[
|
|
20
|
+
"mcp23017_read_a"
|
|
21
|
+
]
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "mcp23017-device-1",
|
|
26
|
+
"type": "mcp23017-device",
|
|
27
|
+
"name": "MCP23017",
|
|
28
|
+
"bus": "1",
|
|
29
|
+
"address": "20"
|
|
19
30
|
},
|
|
20
31
|
{
|
|
21
32
|
"id": "mcp23017_read_a",
|
|
22
|
-
"type": "
|
|
33
|
+
"type": "mcp23017",
|
|
23
34
|
"z": "tab_mcp23017_demo",
|
|
24
35
|
"name": "Read PORTA",
|
|
25
|
-
"bus": "1",
|
|
26
|
-
"address": "20",
|
|
27
36
|
"x": 340,
|
|
28
37
|
"y": 160,
|
|
29
|
-
"wires": [
|
|
38
|
+
"wires": [
|
|
39
|
+
[
|
|
40
|
+
"fn_combine"
|
|
41
|
+
]
|
|
42
|
+
],
|
|
43
|
+
"device": "mcp23017-device-1"
|
|
30
44
|
},
|
|
31
45
|
{
|
|
32
46
|
"id": "fn_combine",
|
|
@@ -37,18 +51,35 @@
|
|
|
37
51
|
"outputs": 2,
|
|
38
52
|
"x": 540,
|
|
39
53
|
"y": 160,
|
|
40
|
-
"wires": [
|
|
54
|
+
"wires": [
|
|
55
|
+
[
|
|
56
|
+
"mcp23017_read_b"
|
|
57
|
+
],
|
|
58
|
+
[
|
|
59
|
+
"fn_display"
|
|
60
|
+
]
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "mcp23017-device-2",
|
|
65
|
+
"type": "mcp23017-device",
|
|
66
|
+
"name": "MCP23017",
|
|
67
|
+
"bus": "1",
|
|
68
|
+
"address": "20"
|
|
41
69
|
},
|
|
42
70
|
{
|
|
43
71
|
"id": "mcp23017_read_b",
|
|
44
|
-
"type": "
|
|
72
|
+
"type": "mcp23017",
|
|
45
73
|
"z": "tab_mcp23017_demo",
|
|
46
74
|
"name": "Read PORTB",
|
|
47
|
-
"bus": "1",
|
|
48
|
-
"address": "20",
|
|
49
75
|
"x": 760,
|
|
50
76
|
"y": 160,
|
|
51
|
-
"wires": [
|
|
77
|
+
"wires": [
|
|
78
|
+
[
|
|
79
|
+
"fn_display"
|
|
80
|
+
]
|
|
81
|
+
],
|
|
82
|
+
"device": "mcp23017-device-2"
|
|
52
83
|
},
|
|
53
84
|
{
|
|
54
85
|
"id": "fn_display",
|
|
@@ -59,7 +90,11 @@
|
|
|
59
90
|
"outputs": 1,
|
|
60
91
|
"x": 980,
|
|
61
92
|
"y": 160,
|
|
62
|
-
"wires": [
|
|
93
|
+
"wires": [
|
|
94
|
+
[
|
|
95
|
+
"debug_ports"
|
|
96
|
+
]
|
|
97
|
+
]
|
|
63
98
|
},
|
|
64
99
|
{
|
|
65
100
|
"id": "debug_ports",
|
|
@@ -81,7 +116,11 @@
|
|
|
81
116
|
"payloadType": "json",
|
|
82
117
|
"x": 120,
|
|
83
118
|
"y": 60,
|
|
84
|
-
"wires": [
|
|
119
|
+
"wires": [
|
|
120
|
+
[
|
|
121
|
+
"fn_knight"
|
|
122
|
+
]
|
|
123
|
+
]
|
|
85
124
|
},
|
|
86
125
|
{
|
|
87
126
|
"id": "fn_knight",
|
|
@@ -92,7 +131,11 @@
|
|
|
92
131
|
"outputs": 1,
|
|
93
132
|
"x": 340,
|
|
94
133
|
"y": 60,
|
|
95
|
-
"wires": [
|
|
134
|
+
"wires": [
|
|
135
|
+
[
|
|
136
|
+
"mcp23017_write"
|
|
137
|
+
]
|
|
138
|
+
]
|
|
96
139
|
},
|
|
97
140
|
{
|
|
98
141
|
"id": "inject_alt",
|
|
@@ -104,7 +147,11 @@
|
|
|
104
147
|
"payloadType": "json",
|
|
105
148
|
"x": 120,
|
|
106
149
|
"y": 100,
|
|
107
|
-
"wires": [
|
|
150
|
+
"wires": [
|
|
151
|
+
[
|
|
152
|
+
"fn_alt"
|
|
153
|
+
]
|
|
154
|
+
]
|
|
108
155
|
},
|
|
109
156
|
{
|
|
110
157
|
"id": "fn_alt",
|
|
@@ -115,7 +162,11 @@
|
|
|
115
162
|
"outputs": 1,
|
|
116
163
|
"x": 340,
|
|
117
164
|
"y": 100,
|
|
118
|
-
"wires": [
|
|
165
|
+
"wires": [
|
|
166
|
+
[
|
|
167
|
+
"mcp23017_write"
|
|
168
|
+
]
|
|
169
|
+
]
|
|
119
170
|
},
|
|
120
171
|
{
|
|
121
172
|
"id": "inject_rotate",
|
|
@@ -127,7 +178,11 @@
|
|
|
127
178
|
"payloadType": "json",
|
|
128
179
|
"x": 120,
|
|
129
180
|
"y": 140,
|
|
130
|
-
"wires": [
|
|
181
|
+
"wires": [
|
|
182
|
+
[
|
|
183
|
+
"fn_rotate"
|
|
184
|
+
]
|
|
185
|
+
]
|
|
131
186
|
},
|
|
132
187
|
{
|
|
133
188
|
"id": "fn_rotate",
|
|
@@ -138,17 +193,27 @@
|
|
|
138
193
|
"outputs": 1,
|
|
139
194
|
"x": 340,
|
|
140
195
|
"y": 140,
|
|
141
|
-
"wires": [
|
|
196
|
+
"wires": [
|
|
197
|
+
[
|
|
198
|
+
"mcp23017_write"
|
|
199
|
+
]
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"id": "mcp23017-device-3",
|
|
204
|
+
"type": "mcp23017-device",
|
|
205
|
+
"name": "MCP23017",
|
|
206
|
+
"bus": "1",
|
|
207
|
+
"address": "20"
|
|
142
208
|
},
|
|
143
209
|
{
|
|
144
210
|
"id": "mcp23017_write",
|
|
145
|
-
"type": "
|
|
211
|
+
"type": "mcp23017",
|
|
146
212
|
"z": "tab_mcp23017_demo",
|
|
147
213
|
"name": "Write PORTA",
|
|
148
|
-
"bus": "1",
|
|
149
|
-
"address": "20",
|
|
150
214
|
"x": 540,
|
|
151
215
|
"y": 100,
|
|
152
|
-
"wires": []
|
|
216
|
+
"wires": [],
|
|
217
|
+
"device": "mcp23017-device-3"
|
|
153
218
|
}
|
|
154
219
|
]
|
|
@@ -39,20 +39,26 @@
|
|
|
39
39
|
]
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
|
+
{
|
|
43
|
+
"id": "pca6408a-device-1",
|
|
44
|
+
"type": "pca6408a-device",
|
|
45
|
+
"name": "PCA6408A",
|
|
46
|
+
"address": "20",
|
|
47
|
+
"bus": "1",
|
|
48
|
+
"intPin": "",
|
|
49
|
+
"gpioChip": "0"
|
|
50
|
+
},
|
|
42
51
|
{
|
|
43
52
|
"id": "mcp_write",
|
|
44
|
-
"type": "
|
|
53
|
+
"type": "pca6408a",
|
|
45
54
|
"z": "tab_pca6408a_demo",
|
|
46
55
|
"name": "Write LEDs",
|
|
47
|
-
"bus": "1",
|
|
48
|
-
"address": "20",
|
|
49
|
-
"gpioChip": "0",
|
|
50
|
-
"intPin": "",
|
|
51
56
|
"x": 560,
|
|
52
57
|
"y": 60,
|
|
53
58
|
"wires": [
|
|
54
59
|
[]
|
|
55
|
-
]
|
|
60
|
+
],
|
|
61
|
+
"device": "pca6408a-device-1"
|
|
56
62
|
},
|
|
57
63
|
{
|
|
58
64
|
"id": "inj_port",
|
|
@@ -72,22 +78,28 @@
|
|
|
72
78
|
]
|
|
73
79
|
]
|
|
74
80
|
},
|
|
81
|
+
{
|
|
82
|
+
"id": "pca6408a-device-2",
|
|
83
|
+
"type": "pca6408a-device",
|
|
84
|
+
"name": "PCA6408A",
|
|
85
|
+
"address": "20",
|
|
86
|
+
"bus": "1",
|
|
87
|
+
"intPin": "",
|
|
88
|
+
"gpioChip": "0"
|
|
89
|
+
},
|
|
75
90
|
{
|
|
76
91
|
"id": "mcp_port",
|
|
77
|
-
"type": "
|
|
92
|
+
"type": "pca6408a",
|
|
78
93
|
"z": "tab_pca6408a_demo",
|
|
79
94
|
"name": "Read port",
|
|
80
|
-
"bus": "1",
|
|
81
|
-
"address": "20",
|
|
82
|
-
"gpioChip": "0",
|
|
83
|
-
"intPin": "",
|
|
84
95
|
"x": 330,
|
|
85
96
|
"y": 160,
|
|
86
97
|
"wires": [
|
|
87
98
|
[
|
|
88
99
|
"fn_hex"
|
|
89
100
|
]
|
|
90
|
-
]
|
|
101
|
+
],
|
|
102
|
+
"device": "pca6408a-device-2"
|
|
91
103
|
},
|
|
92
104
|
{
|
|
93
105
|
"id": "fn_hex",
|
|
@@ -135,22 +147,28 @@
|
|
|
135
147
|
]
|
|
136
148
|
]
|
|
137
149
|
},
|
|
150
|
+
{
|
|
151
|
+
"id": "pca6408a-device-3",
|
|
152
|
+
"type": "pca6408a-device",
|
|
153
|
+
"name": "PCA6408A",
|
|
154
|
+
"address": "20",
|
|
155
|
+
"bus": "1",
|
|
156
|
+
"intPin": "",
|
|
157
|
+
"gpioChip": "0"
|
|
158
|
+
},
|
|
138
159
|
{
|
|
139
160
|
"id": "mcp_btn",
|
|
140
|
-
"type": "
|
|
161
|
+
"type": "pca6408a",
|
|
141
162
|
"z": "tab_pca6408a_demo",
|
|
142
163
|
"name": "Read P4",
|
|
143
|
-
"bus": "1",
|
|
144
|
-
"address": "20",
|
|
145
|
-
"gpioChip": "0",
|
|
146
|
-
"intPin": "",
|
|
147
164
|
"x": 330,
|
|
148
165
|
"y": 260,
|
|
149
166
|
"wires": [
|
|
150
167
|
[
|
|
151
168
|
"dbg_btn"
|
|
152
169
|
]
|
|
153
|
-
]
|
|
170
|
+
],
|
|
171
|
+
"device": "pca6408a-device-3"
|
|
154
172
|
},
|
|
155
173
|
{
|
|
156
174
|
"id": "dbg_btn",
|
|
@@ -39,20 +39,26 @@
|
|
|
39
39
|
]
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
|
+
{
|
|
43
|
+
"id": "pca6416a-device-1",
|
|
44
|
+
"type": "pca6416a-device",
|
|
45
|
+
"name": "PCA6416A",
|
|
46
|
+
"address": "20",
|
|
47
|
+
"bus": "1",
|
|
48
|
+
"intPin": "",
|
|
49
|
+
"gpioChip": "0"
|
|
50
|
+
},
|
|
42
51
|
{
|
|
43
52
|
"id": "mcp_write",
|
|
44
|
-
"type": "
|
|
53
|
+
"type": "pca6416a",
|
|
45
54
|
"z": "tab_pca6416a_demo",
|
|
46
55
|
"name": "Write LEDs",
|
|
47
|
-
"bus": "1",
|
|
48
|
-
"address": "20",
|
|
49
|
-
"gpioChip": "0",
|
|
50
|
-
"intPin": "",
|
|
51
56
|
"x": 560,
|
|
52
57
|
"y": 60,
|
|
53
58
|
"wires": [
|
|
54
59
|
[]
|
|
55
|
-
]
|
|
60
|
+
],
|
|
61
|
+
"device": "pca6416a-device-1"
|
|
56
62
|
},
|
|
57
63
|
{
|
|
58
64
|
"id": "inj_port",
|
|
@@ -72,22 +78,28 @@
|
|
|
72
78
|
]
|
|
73
79
|
]
|
|
74
80
|
},
|
|
81
|
+
{
|
|
82
|
+
"id": "pca6416a-device-2",
|
|
83
|
+
"type": "pca6416a-device",
|
|
84
|
+
"name": "PCA6416A",
|
|
85
|
+
"address": "20",
|
|
86
|
+
"bus": "1",
|
|
87
|
+
"intPin": "",
|
|
88
|
+
"gpioChip": "0"
|
|
89
|
+
},
|
|
75
90
|
{
|
|
76
91
|
"id": "mcp_port",
|
|
77
|
-
"type": "
|
|
92
|
+
"type": "pca6416a",
|
|
78
93
|
"z": "tab_pca6416a_demo",
|
|
79
94
|
"name": "Read all pins",
|
|
80
|
-
"bus": "1",
|
|
81
|
-
"address": "20",
|
|
82
|
-
"gpioChip": "0",
|
|
83
|
-
"intPin": "",
|
|
84
95
|
"x": 330,
|
|
85
96
|
"y": 160,
|
|
86
97
|
"wires": [
|
|
87
98
|
[
|
|
88
99
|
"fn_hex"
|
|
89
100
|
]
|
|
90
|
-
]
|
|
101
|
+
],
|
|
102
|
+
"device": "pca6416a-device-2"
|
|
91
103
|
},
|
|
92
104
|
{
|
|
93
105
|
"id": "fn_hex",
|
|
@@ -135,22 +147,28 @@
|
|
|
135
147
|
]
|
|
136
148
|
]
|
|
137
149
|
},
|
|
150
|
+
{
|
|
151
|
+
"id": "pca6416a-device-3",
|
|
152
|
+
"type": "pca6416a-device",
|
|
153
|
+
"name": "PCA6416A",
|
|
154
|
+
"address": "20",
|
|
155
|
+
"bus": "1",
|
|
156
|
+
"intPin": "",
|
|
157
|
+
"gpioChip": "0"
|
|
158
|
+
},
|
|
138
159
|
{
|
|
139
160
|
"id": "mcp_btn",
|
|
140
|
-
"type": "
|
|
161
|
+
"type": "pca6416a",
|
|
141
162
|
"z": "tab_pca6416a_demo",
|
|
142
163
|
"name": "Read P1_0",
|
|
143
|
-
"bus": "1",
|
|
144
|
-
"address": "20",
|
|
145
|
-
"gpioChip": "0",
|
|
146
|
-
"intPin": "",
|
|
147
164
|
"x": 330,
|
|
148
165
|
"y": 260,
|
|
149
166
|
"wires": [
|
|
150
167
|
[
|
|
151
168
|
"dbg_btn"
|
|
152
169
|
]
|
|
153
|
-
]
|
|
170
|
+
],
|
|
171
|
+
"device": "pca6416a-device-3"
|
|
154
172
|
},
|
|
155
173
|
{
|
|
156
174
|
"id": "dbg_btn",
|
|
@@ -39,18 +39,24 @@
|
|
|
39
39
|
]
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
|
+
{
|
|
43
|
+
"id": "pca9536-device-1",
|
|
44
|
+
"type": "pca9536-device",
|
|
45
|
+
"name": "PCA9536",
|
|
46
|
+
"pollInterval": "",
|
|
47
|
+
"bus": "1"
|
|
48
|
+
},
|
|
42
49
|
{
|
|
43
50
|
"id": "mcp_write",
|
|
44
|
-
"type": "
|
|
51
|
+
"type": "pca9536",
|
|
45
52
|
"z": "tab_pca9536_demo",
|
|
46
53
|
"name": "Write LEDs",
|
|
47
|
-
"bus": "1",
|
|
48
54
|
"x": 560,
|
|
49
55
|
"y": 60,
|
|
50
56
|
"wires": [
|
|
51
57
|
[]
|
|
52
58
|
],
|
|
53
|
-
"
|
|
59
|
+
"device": "pca9536-device-1"
|
|
54
60
|
},
|
|
55
61
|
{
|
|
56
62
|
"id": "inj_port",
|
|
@@ -70,12 +76,18 @@
|
|
|
70
76
|
]
|
|
71
77
|
]
|
|
72
78
|
},
|
|
79
|
+
{
|
|
80
|
+
"id": "pca9536-device-2",
|
|
81
|
+
"type": "pca9536-device",
|
|
82
|
+
"name": "PCA9536",
|
|
83
|
+
"pollInterval": "",
|
|
84
|
+
"bus": "1"
|
|
85
|
+
},
|
|
73
86
|
{
|
|
74
87
|
"id": "mcp_port",
|
|
75
|
-
"type": "
|
|
88
|
+
"type": "pca9536",
|
|
76
89
|
"z": "tab_pca9536_demo",
|
|
77
90
|
"name": "Read port",
|
|
78
|
-
"bus": "1",
|
|
79
91
|
"x": 330,
|
|
80
92
|
"y": 160,
|
|
81
93
|
"wires": [
|
|
@@ -83,7 +95,7 @@
|
|
|
83
95
|
"fn_hex"
|
|
84
96
|
]
|
|
85
97
|
],
|
|
86
|
-
"
|
|
98
|
+
"device": "pca9536-device-2"
|
|
87
99
|
},
|
|
88
100
|
{
|
|
89
101
|
"id": "fn_hex",
|
|
@@ -131,12 +143,18 @@
|
|
|
131
143
|
]
|
|
132
144
|
]
|
|
133
145
|
},
|
|
146
|
+
{
|
|
147
|
+
"id": "pca9536-device-3",
|
|
148
|
+
"type": "pca9536-device",
|
|
149
|
+
"name": "PCA9536",
|
|
150
|
+
"pollInterval": "",
|
|
151
|
+
"bus": "1"
|
|
152
|
+
},
|
|
134
153
|
{
|
|
135
154
|
"id": "mcp_btn",
|
|
136
|
-
"type": "
|
|
155
|
+
"type": "pca9536",
|
|
137
156
|
"z": "tab_pca9536_demo",
|
|
138
157
|
"name": "Read P2",
|
|
139
|
-
"bus": "1",
|
|
140
158
|
"x": 330,
|
|
141
159
|
"y": 260,
|
|
142
160
|
"wires": [
|
|
@@ -144,7 +162,7 @@
|
|
|
144
162
|
"dbg_btn"
|
|
145
163
|
]
|
|
146
164
|
],
|
|
147
|
-
"
|
|
165
|
+
"device": "pca9536-device-3"
|
|
148
166
|
},
|
|
149
167
|
{
|
|
150
168
|
"id": "dbg_btn",
|