38 lines
671 B
Plaintext
38 lines
671 B
Plaintext
|
; This file contains the configuration data for the buttons.
|
||
|
|
||
|
[button]
|
||
|
; comma seperated list of button names
|
||
|
; button names omited from this list will be omited.
|
||
|
names=switch1,switch2,switch3,switch4
|
||
|
|
||
|
; The button is named as a section.
|
||
|
; When adding additional buttons, be sure to add the section
|
||
|
; name to the index on line 6.
|
||
|
[example]
|
||
|
; the GPIO pin to watch
|
||
|
pin: 1
|
||
|
; macro to run when the pin goes low
|
||
|
close: "gl1"
|
||
|
; macro to run when the pin goes high
|
||
|
open: "gm*"
|
||
|
|
||
|
[switch1]
|
||
|
pin: 12
|
||
|
close: "gl21/2"
|
||
|
open: "gl21/1"
|
||
|
|
||
|
[switch2]
|
||
|
pin: 16
|
||
|
close: "gl22/2"
|
||
|
open: "gl22/1"
|
||
|
|
||
|
[switch3]
|
||
|
pin: 20
|
||
|
close: "gl23/2"
|
||
|
open: "gl23/1"
|
||
|
|
||
|
[switch4]
|
||
|
pin: 21
|
||
|
close: "gl24/2"
|
||
|
open: "gl24/1"
|