Skip to content

Commit 376b184

Browse files
authored
Add "selectPullUp": true for some digitalIO pin components
1 parent 2b40a31 commit 376b184

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

components/pin/flat_vibration_switch/definition.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
"vendor": "Generic",
33
"productURL": "https://www.adafruit.com/product/4081",
44
"displayName": "Flat Vibration Switch",
5+
"description": "Low sensitivity, directional vibration-induced trigger switch. Triggers when bumped from the side only",
56
"mode": "DIGITAL",
67
"direction": "INPUT",
78
"published": true,
89
"defaultPeriod":30,
10+
"selectPullUp": true,
911
"visualization": {
1012
"type": "switch",
1113
"offLabel": "Still",
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"vendor": "Generic",
3+
"productURL": "https://www.adafruit.com/product/1766",
4+
"displayName": "Round Vibration Switch",
5+
"description": "Vibration-induced trigger switch. Triggers best when bumped from the sides.",
6+
"mode": "DIGITAL",
7+
"direction": "INPUT",
8+
"published": true,
9+
"defaultPeriod":0,
10+
"selectPullUp": true,
11+
"visualization": {
12+
"type": "switch",
13+
"offLabel": "Still",
14+
"offIcon": "fa6:regular:bell-slash",
15+
"onLabel": "Touched",
16+
"onIcon": "fa6:solid:bell-on"
17+
}
18+
}

components/pin/toggle_switch/definition.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"mode": "DIGITAL",
99
"direction": "INPUT",
1010
"defaultPeriod": 30,
11+
"selectPullUp": true,
1112
"visualization": {
1213
"type": "switch",
1314
"offLabel": "Off",

0 commit comments

Comments
 (0)