File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -55,29 +55,27 @@ how you can configure your GPIOs.
55
55
# the following keys:
56
56
#
57
57
# - `num`: Required. The GPIO number.
58
+ # - `names`: Required. One or more names for the GPIO
58
59
# - `direction`: Default: `"in"`. Must be either "in" or "out"
59
- # - `active_low`: Default: `false`. If set to true, the polatiry of the pin will
60
+ # - `active_low`: Default: `false`. If set to true, the polarity of the pin will
60
61
# be reversed.
61
62
# - `export`: Default: `true`. If true, this GPIO will be automatically
62
63
# exported when `gpio export-all` is run (e.g. by an init script).
63
- # - `aliases`: Additional names for the same GPIO
64
64
#
65
65
66
- # Basic Form
67
- [ pins . reset_button ]
68
- num = 73 # required
69
- direction = " in" # default: in
70
- active_low = true # default: false
71
- export = true # default: true
66
+ [[ pins ]]
67
+ num = 73 # required
68
+ names = [ " reset_button " ] # required (may have multiple)
69
+ direction = " in" # default: in
70
+ active_low = false # default: false (really means invert logic)
71
+ export = true # default: true
72
72
73
- [pins . status_led ]
73
+ [[ pins ] ]
74
74
num = 37
75
- aliases = [" A27" , " green_led" ]
75
+ names = [" status_led " , " A27" , " green_led" ]
76
76
direction = " out"
77
77
78
- # Compact Form
79
- [pins ]
80
- error_led = { num = 11 , direction = " in" , export = false }
78
+ # ...
81
79
```
82
80
83
81
## Implementation Notes
You can’t perform that action at this time.
0 commit comments