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.
@@ -39,20 +39,26 @@
39
39
  ]
40
40
  ]
41
41
  },
42
+ {
43
+ "id": "pca9539-device-1",
44
+ "type": "pca9539-device",
45
+ "name": "PCA9539",
46
+ "address": "74",
47
+ "bus": "1",
48
+ "intPin": "",
49
+ "gpioChip": "0"
50
+ },
42
51
  {
43
52
  "id": "mcp_write",
44
- "type": "periph-pca9539",
53
+ "type": "pca9539",
45
54
  "z": "tab_pca9539_demo",
46
55
  "name": "Write LEDs",
47
- "bus": "1",
48
- "address": "74",
49
- "gpioChip": "0",
50
- "intPin": "",
51
56
  "x": 560,
52
57
  "y": 60,
53
58
  "wires": [
54
59
  []
55
- ]
60
+ ],
61
+ "device": "pca9539-device-1"
56
62
  },
57
63
  {
58
64
  "id": "inj_port",
@@ -72,22 +78,28 @@
72
78
  ]
73
79
  ]
74
80
  },
81
+ {
82
+ "id": "pca9539-device-2",
83
+ "type": "pca9539-device",
84
+ "name": "PCA9539",
85
+ "address": "74",
86
+ "bus": "1",
87
+ "intPin": "",
88
+ "gpioChip": "0"
89
+ },
75
90
  {
76
91
  "id": "mcp_port",
77
- "type": "periph-pca9539",
92
+ "type": "pca9539",
78
93
  "z": "tab_pca9539_demo",
79
94
  "name": "Read all pins",
80
- "bus": "1",
81
- "address": "74",
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": "pca9539-device-2"
91
103
  },
92
104
  {
93
105
  "id": "fn_hex",
@@ -135,22 +147,28 @@
135
147
  ]
136
148
  ]
137
149
  },
150
+ {
151
+ "id": "pca9539-device-3",
152
+ "type": "pca9539-device",
153
+ "name": "PCA9539",
154
+ "address": "74",
155
+ "bus": "1",
156
+ "intPin": "",
157
+ "gpioChip": "0"
158
+ },
138
159
  {
139
160
  "id": "mcp_btn",
140
- "type": "periph-pca9539",
161
+ "type": "pca9539",
141
162
  "z": "tab_pca9539_demo",
142
163
  "name": "Read P10",
143
- "bus": "1",
144
- "address": "74",
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": "pca9539-device-3"
154
172
  },
155
173
  {
156
174
  "id": "dbg_btn",
@@ -15,18 +15,33 @@
15
15
  "payloadType": "json",
16
16
  "x": 120,
17
17
  "y": 100,
18
- "wires": [["pcf8574_read"]]
18
+ "wires": [
19
+ [
20
+ "pcf8574_read"
21
+ ]
22
+ ]
23
+ },
24
+ {
25
+ "id": "pcf8574-device-1",
26
+ "type": "pcf8574-device",
27
+ "name": "PCF8574",
28
+ "bus": "1",
29
+ "address": "20"
19
30
  },
20
31
  {
21
32
  "id": "pcf8574_read",
22
- "type": "periph-pcf8574",
33
+ "type": "pcf8574",
23
34
  "z": "tab_pcf8574_demo",
24
35
  "name": "PCF8574 read",
25
- "bus": "1",
26
- "address": "20",
27
36
  "x": 320,
28
37
  "y": 100,
29
- "wires": [["fn_mirror", "debug_port"]]
38
+ "wires": [
39
+ [
40
+ "fn_mirror",
41
+ "debug_port"
42
+ ]
43
+ ],
44
+ "device": "pcf8574-device-1"
30
45
  },
31
46
  {
32
47
  "id": "fn_mirror",
@@ -37,23 +52,96 @@
37
52
  "outputs": 4,
38
53
  "x": 540,
39
54
  "y": 100,
40
- "wires": [["pcf8574_p0"], ["pcf8574_p1"], ["pcf8574_p2"], ["pcf8574_p3"]]
55
+ "wires": [
56
+ [
57
+ "pcf8574_p0"
58
+ ],
59
+ [
60
+ "pcf8574_p1"
61
+ ],
62
+ [
63
+ "pcf8574_p2"
64
+ ],
65
+ [
66
+ "pcf8574_p3"
67
+ ]
68
+ ]
41
69
  },
42
70
  {
43
- "id": "pcf8574_p0", "type": "periph-pcf8574", "z": "tab_pcf8574_demo",
44
- "name": "PCF8574 P0", "bus": "1", "address": "20", "x": 760, "y": 60, "wires": [[]]
71
+ "id": "pcf8574-device-2",
72
+ "type": "pcf8574-device",
73
+ "name": "PCF8574",
74
+ "bus": "1",
75
+ "address": "20"
45
76
  },
46
77
  {
47
- "id": "pcf8574_p1", "type": "periph-pcf8574", "z": "tab_pcf8574_demo",
48
- "name": "PCF8574 P1", "bus": "1", "address": "20", "x": 760, "y": 100, "wires": [[]]
78
+ "id": "pcf8574_p0",
79
+ "type": "pcf8574",
80
+ "z": "tab_pcf8574_demo",
81
+ "name": "PCF8574 P0",
82
+ "x": 760,
83
+ "y": 60,
84
+ "wires": [
85
+ []
86
+ ],
87
+ "device": "pcf8574-device-2"
49
88
  },
50
89
  {
51
- "id": "pcf8574_p2", "type": "periph-pcf8574", "z": "tab_pcf8574_demo",
52
- "name": "PCF8574 P2", "bus": "1", "address": "20", "x": 760, "y": 140, "wires": [[]]
90
+ "id": "pcf8574-device-3",
91
+ "type": "pcf8574-device",
92
+ "name": "PCF8574",
93
+ "bus": "1",
94
+ "address": "20"
95
+ },
96
+ {
97
+ "id": "pcf8574_p1",
98
+ "type": "pcf8574",
99
+ "z": "tab_pcf8574_demo",
100
+ "name": "PCF8574 P1",
101
+ "x": 760,
102
+ "y": 100,
103
+ "wires": [
104
+ []
105
+ ],
106
+ "device": "pcf8574-device-3"
53
107
  },
54
108
  {
55
- "id": "pcf8574_p3", "type": "periph-pcf8574", "z": "tab_pcf8574_demo",
56
- "name": "PCF8574 P3", "bus": "1", "address": "20", "x": 760, "y": 180, "wires": [[]]
109
+ "id": "pcf8574-device-4",
110
+ "type": "pcf8574-device",
111
+ "name": "PCF8574",
112
+ "bus": "1",
113
+ "address": "20"
114
+ },
115
+ {
116
+ "id": "pcf8574_p2",
117
+ "type": "pcf8574",
118
+ "z": "tab_pcf8574_demo",
119
+ "name": "PCF8574 P2",
120
+ "x": 760,
121
+ "y": 140,
122
+ "wires": [
123
+ []
124
+ ],
125
+ "device": "pcf8574-device-4"
126
+ },
127
+ {
128
+ "id": "pcf8574-device-5",
129
+ "type": "pcf8574-device",
130
+ "name": "PCF8574",
131
+ "bus": "1",
132
+ "address": "20"
133
+ },
134
+ {
135
+ "id": "pcf8574_p3",
136
+ "type": "pcf8574",
137
+ "z": "tab_pcf8574_demo",
138
+ "name": "PCF8574 P3",
139
+ "x": 760,
140
+ "y": 180,
141
+ "wires": [
142
+ []
143
+ ],
144
+ "device": "pcf8574-device-5"
57
145
  },
58
146
  {
59
147
  "id": "debug_port",
@@ -1,70 +1 @@
1
- {
2
- "id": "pcf8575-demo",
3
- "type": "tab",
4
- "label": "PCF8575 Demo",
5
- "info": "16-bit IO expander demo. Port 0 (P00–P07) drives active-low LEDs; Port 1 (P10–P17) reads push buttons with internal pull-up. Every 200ms the buttons are mirrored to the LEDs. Use inject nodes to read individual pins or ports manually.",
6
- "nodes": [
7
- {
8
- "id": "pcf8575-1",
9
- "type": "periph-pcf8575",
10
- "z": "pcf8575-demo",
11
- "bus": "1",
12
- "address": "20",
13
- "name": "PCF8575",
14
- "wires": [[]]
15
- },
16
- {
17
- "id": "inject-periodic",
18
- "type": "inject",
19
- "z": "pcf8575-demo",
20
- "name": "Tick (200ms)",
21
- "topic": "",
22
- "payload": "",
23
- "payloadType": "date",
24
- "repeat": "0.2",
25
- "crontab": "",
26
- "once": true,
27
- "onceDelay": "",
28
- "wires": [["pcf8575-1"]]
29
- },
30
- {
31
- "id": "read-port0",
32
- "type": "inject",
33
- "z": "pcf8575-demo",
34
- "name": "Read Port 0",
35
- "topic": "",
36
- "payload": "{\"port\": 0}",
37
- "payloadType": "json",
38
- "repeat": "",
39
- "crontab": "",
40
- "once": false,
41
- "onceDelay": "",
42
- "wires": [["pcf8575-1"]]
43
- },
44
- {
45
- "id": "read-port1",
46
- "type": "inject",
47
- "z": "pcf8575-demo",
48
- "name": "Read Port 1",
49
- "topic": "",
50
- "payload": "{\"port\": 1}",
51
- "payloadType": "json",
52
- "repeat": "",
53
- "crontab": "",
54
- "once": false,
55
- "onceDelay": "",
56
- "wires": [["pcf8575-1"]]
57
- },
58
- {
59
- "id": "debug-out",
60
- "type": "debug",
61
- "z": "pcf8575-demo",
62
- "name": "",
63
- "active": true,
64
- "console": "true",
65
- "complete": "false",
66
- "statusVal": "",
67
- "wires": []
68
- }
69
- ]
70
- }
1
+ [{"id": "pcf8575-demo", "type": "tab", "label": "PCF8575 Demo", "info": "16-bit IO expander demo. Port 0 (P00–P07) drives active-low LEDs; Port 1 (P10–P17) reads push buttons with internal pull-up. Every 200ms the buttons are mirrored to the LEDs. Use inject nodes to read individual pins or ports manually."}, {"id": "pcf8575-device-1", "type": "pcf8575-device", "name": "PCF8575", "bus": "1", "address": "20"}, {"id": "pcf8575-1", "type": "pcf8575", "z": "pcf8575-demo", "name": "PCF8575", "wires": [[]], "device": "pcf8575-device-1"}, {"id": "inject-periodic", "type": "inject", "z": "pcf8575-demo", "name": "Tick (200ms)", "topic": "", "payload": "", "payloadType": "date", "repeat": "0.2", "crontab": "", "once": true, "onceDelay": "", "wires": [["pcf8575-1"]]}, {"id": "read-port0", "type": "inject", "z": "pcf8575-demo", "name": "Read Port 0", "topic": "", "payload": "{\"port\": 0}", "payloadType": "json", "repeat": "", "crontab": "", "once": false, "onceDelay": "", "wires": [["pcf8575-1"]]}, {"id": "read-port1", "type": "inject", "z": "pcf8575-demo", "name": "Read Port 1", "topic": "", "payload": "{\"port\": 1}", "payloadType": "json", "repeat": "", "crontab": "", "once": false, "onceDelay": "", "wires": [["pcf8575-1"]]}, {"id": "debug-out", "type": "debug", "z": "pcf8575-demo", "name": "", "active": true, "console": "true", "complete": "false", "statusVal": "", "wires": []}]
@@ -39,20 +39,26 @@
39
39
  ]
40
40
  ]
41
41
  },
42
+ {
43
+ "id": "tca9554-device-1",
44
+ "type": "tca9554-device",
45
+ "name": "TCA9554",
46
+ "address": "20",
47
+ "bus": "1",
48
+ "intPin": "",
49
+ "gpioChip": "0"
50
+ },
42
51
  {
43
52
  "id": "mcp_write",
44
- "type": "periph-tca9554",
53
+ "type": "tca9554",
45
54
  "z": "tab_tca9554_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": "tca9554-device-1"
56
62
  },
57
63
  {
58
64
  "id": "inj_port",
@@ -72,22 +78,28 @@
72
78
  ]
73
79
  ]
74
80
  },
81
+ {
82
+ "id": "tca9554-device-2",
83
+ "type": "tca9554-device",
84
+ "name": "TCA9554",
85
+ "address": "20",
86
+ "bus": "1",
87
+ "intPin": "",
88
+ "gpioChip": "0"
89
+ },
75
90
  {
76
91
  "id": "mcp_port",
77
- "type": "periph-tca9554",
92
+ "type": "tca9554",
78
93
  "z": "tab_tca9554_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": "tca9554-device-2"
91
103
  },
92
104
  {
93
105
  "id": "fn_hex",
@@ -135,22 +147,28 @@
135
147
  ]
136
148
  ]
137
149
  },
150
+ {
151
+ "id": "tca9554-device-3",
152
+ "type": "tca9554-device",
153
+ "name": "TCA9554",
154
+ "address": "20",
155
+ "bus": "1",
156
+ "intPin": "",
157
+ "gpioChip": "0"
158
+ },
138
159
  {
139
160
  "id": "mcp_btn",
140
- "type": "periph-tca9554",
161
+ "type": "tca9554",
141
162
  "z": "tab_tca9554_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": "tca9554-device-3"
154
172
  },
155
173
  {
156
174
  "id": "dbg_btn",
@@ -1,117 +1 @@
1
- {
2
- "id": "tpic6b595-demo",
3
- "type": "tab",
4
- "label": "TPIC6B595 Demo",
5
- "info": "TPIC6B595 power SIPO demo: two cascaded devices driving 16 LEDs as an automotive-cluster-style indicator bank. Every 150 ms an inject node drives a 'knight rider' chase pattern that walks a single lit LED across all 16 outputs and back. Every 5 seconds a second inject toggles { outputEnable: false } for 500 ms to demonstrate glitch-free global blanking via G — the chase pattern's shadow state is preserved, so the LEDs resume exactly where they left off when G is re-enabled.",
6
- "nodes": [
7
- {
8
- "id": "tpic6b595-1",
9
- "type": "periph-tpic6b595",
10
- "z": "tpic6b595-demo",
11
- "name": "TPIC6B595 × 2",
12
- "rckPin": "17",
13
- "srclrPin": "16",
14
- "gPin": "15",
15
- "numDevices": "2",
16
- "wires": [[]]
17
- },
18
- {
19
- "id": "inject-chase-0",
20
- "type": "inject",
21
- "z": "tpic6b595-demo",
22
- "name": "Chase step 0 (DRAIN0)",
23
- "topic": "",
24
- "payload": "{\"values\": [1, 0]}",
25
- "payloadType": "json",
26
- "repeat": "",
27
- "crontab": "",
28
- "once": true,
29
- "onceDelay": "0.1",
30
- "wires": [["tpic6b595-1"]]
31
- },
32
- {
33
- "id": "inject-chase-1",
34
- "type": "inject",
35
- "z": "tpic6b595-demo",
36
- "name": "Chase step 1 (DRAIN1)",
37
- "topic": "",
38
- "payload": "{\"values\": [2, 0]}",
39
- "payloadType": "json",
40
- "repeat": "",
41
- "crontab": "",
42
- "once": true,
43
- "onceDelay": "0.25",
44
- "wires": [["tpic6b595-1"]]
45
- },
46
- {
47
- "id": "inject-chase-2",
48
- "type": "inject",
49
- "z": "tpic6b595-demo",
50
- "name": "Chase step 2 (DRAIN2)",
51
- "topic": "",
52
- "payload": "{\"values\": [4, 0]}",
53
- "payloadType": "json",
54
- "repeat": "",
55
- "crontab": "",
56
- "once": true,
57
- "onceDelay": "0.4",
58
- "wires": [["tpic6b595-1"]]
59
- },
60
- {
61
- "id": "inject-chase-3",
62
- "type": "inject",
63
- "z": "tpic6b595-demo",
64
- "name": "Chase step 3 (DRAIN3)",
65
- "topic": "",
66
- "payload": "{\"values\": [8, 0]}",
67
- "payloadType": "json",
68
- "repeat": "",
69
- "crontab": "",
70
- "once": true,
71
- "onceDelay": "0.55",
72
- "wires": [["tpic6b595-1"]]
73
- },
74
- {
75
- "id": "inject-chase-4",
76
- "type": "inject",
77
- "z": "tpic6b595-demo",
78
- "name": "Chase step 4 (DRAIN4)",
79
- "topic": "",
80
- "payload": "{\"values\": [16, 0]}",
81
- "payloadType": "json",
82
- "repeat": "",
83
- "crontab": "",
84
- "once": true,
85
- "onceDelay": "0.7",
86
- "wires": [["tpic6b595-1"]]
87
- },
88
- {
89
- "id": "inject-blank",
90
- "type": "inject",
91
- "z": "tpic6b595-demo",
92
- "name": "Blank via G (Full)",
93
- "topic": "",
94
- "payload": "{\"outputEnable\": false}",
95
- "payloadType": "json",
96
- "repeat": "5",
97
- "crontab": "",
98
- "once": false,
99
- "onceDelay": "",
100
- "wires": [["tpic6b595-1"]]
101
- },
102
- {
103
- "id": "inject-unblank",
104
- "type": "inject",
105
- "z": "tpic6b595-demo",
106
- "name": "Un-blank via G (Full)",
107
- "topic": "",
108
- "payload": "{\"outputEnable\": true}",
109
- "payloadType": "json",
110
- "repeat": "5",
111
- "crontab": "",
112
- "once": false,
113
- "onceDelay": "0.5",
114
- "wires": [["tpic6b595-1"]]
115
- }
116
- ]
117
- }
1
+ [{"id": "tpic6b595-demo", "type": "tab", "label": "TPIC6B595 Demo", "info": "TPIC6B595 power SIPO demo: two cascaded devices driving 16 LEDs as an automotive-cluster-style indicator bank. Every 150 ms an inject node drives a 'knight rider' chase pattern that walks a single lit LED across all 16 outputs and back. Every 5 seconds a second inject toggles { outputEnable: false } for 500 ms to demonstrate glitch-free global blanking via G — the chase pattern's shadow state is preserved, so the LEDs resume exactly where they left off when G is re-enabled."}, {"id": "tpic6b595-device-1", "type": "tpic6b595-device", "name": "TPIC6B595", "gPin": "15", "rckPin": "17", "srclrPin": "16", "numDevices": "2"}, {"id": "tpic6b595-1", "type": "tpic6b595", "z": "tpic6b595-demo", "name": "TPIC6B595 × 2", "wires": [[]], "device": "tpic6b595-device-1"}, {"id": "inject-chase-0", "type": "inject", "z": "tpic6b595-demo", "name": "Chase step 0 (DRAIN0)", "topic": "", "payload": "{\"values\": [1, 0]}", "payloadType": "json", "repeat": "", "crontab": "", "once": true, "onceDelay": "0.1", "wires": [["tpic6b595-1"]]}, {"id": "inject-chase-1", "type": "inject", "z": "tpic6b595-demo", "name": "Chase step 1 (DRAIN1)", "topic": "", "payload": "{\"values\": [2, 0]}", "payloadType": "json", "repeat": "", "crontab": "", "once": true, "onceDelay": "0.25", "wires": [["tpic6b595-1"]]}, {"id": "inject-chase-2", "type": "inject", "z": "tpic6b595-demo", "name": "Chase step 2 (DRAIN2)", "topic": "", "payload": "{\"values\": [4, 0]}", "payloadType": "json", "repeat": "", "crontab": "", "once": true, "onceDelay": "0.4", "wires": [["tpic6b595-1"]]}, {"id": "inject-chase-3", "type": "inject", "z": "tpic6b595-demo", "name": "Chase step 3 (DRAIN3)", "topic": "", "payload": "{\"values\": [8, 0]}", "payloadType": "json", "repeat": "", "crontab": "", "once": true, "onceDelay": "0.55", "wires": [["tpic6b595-1"]]}, {"id": "inject-chase-4", "type": "inject", "z": "tpic6b595-demo", "name": "Chase step 4 (DRAIN4)", "topic": "", "payload": "{\"values\": [16, 0]}", "payloadType": "json", "repeat": "", "crontab": "", "once": true, "onceDelay": "0.7", "wires": [["tpic6b595-1"]]}, {"id": "inject-blank", "type": "inject", "z": "tpic6b595-demo", "name": "Blank via G (Full)", "topic": "", "payload": "{\"outputEnable\": false}", "payloadType": "json", "repeat": "5", "crontab": "", "once": false, "onceDelay": "", "wires": [["tpic6b595-1"]]}, {"id": "inject-unblank", "type": "inject", "z": "tpic6b595-demo", "name": "Un-blank via G (Full)", "topic": "", "payload": "{\"outputEnable\": true}", "payloadType": "json", "repeat": "5", "crontab": "", "once": false, "onceDelay": "0.5", "wires": [["tpic6b595-1"]]}]