Skip to content

Commit

Permalink
Change used type to existing (#997)
Browse files Browse the repository at this point in the history
* Change used type to existing

* use of ; for commenting, should fix errors related to in line comments
  • Loading branch information
s-martin authored Jun 5, 2020
1 parent 6eb6c5d commit 6d52f27
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
8 changes: 4 additions & 4 deletions components/gpio_control/example_configs/gpio_settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
enabled: True
[VolumeControl]
enabled: False
Type: RotaryEncoderClickable
Type: RotaryEncoder
PinUp: 16
PinDown: 19
pull_up: True
hold_time: 0.3
hold_repeat: True
timeBase: 0.1 # only for rotary encoder
timeBase: 0.1 ; only for rotary encoder
functionCallDown: functionCallVolD
functionCallUp: functionCallVolU
functionCallTwoButtons: functionCallVol0 #only for TwoButtonControl
functionCallButton: functionCallPlayerPause # only for RotaryEncoderClickable
functionCallTwoButtons: functionCallVol0 ;only for TwoButtonControl
functionCallButton: functionCallPlayerPause ; only for RotaryEncoderClickable

[PrevNextControl]
Type: TwoButtonControl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ pull_up: True
hold_time: 0.3
hold_repeat: True
timeBase: 0.2
# only for rotary encoder
; only for rotary encoder
functionCallDown: functionCallVolD
functionCallUp: functionCallVolU
functionCallTwoButtons: functionCallStop
#only for TwoButtonControl
functionCallButton: functionCallPlayerPause
# only for RotaryEncoderClickable
; only for TwoButtonControl
functionCallButton: functionCallPlayerPause
; only for RotaryEncoderClickable

[PrevNextControl]
enabled: True
Expand Down
14 changes: 7 additions & 7 deletions components/gpio_control/example_configs/gpio_settings_test.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[DEFAULT]
enabled: True

#The following Types exist:
# RotaryEncoder
# TwoButtonControl
# SimpleButton = Button
; The following Types exist:
; RotaryEncoder
; TwoButtonControl
; SimpleButton = Button
[VolumeControl]
enabled: True
Type: RotaryEncoder
Expand All @@ -14,12 +14,12 @@ pull_up: True
hold_time: 0.3
hold_repeat: True
timeBase: 0.1
#timeBase only for rotary encoder
; timeBase only for rotary encoder
functionCallDown: functionCallVolD
functionCallUp: functionCallVolU
functionCallTwoButtons: functionCallVol0
# functionCallTwoButtons only for TwoButtonControl
#functionCallButton: functionCallPlayerPause ; only for RotaryEncoderClickable
; functionCallTwoButtons only for TwoButtonControl
; functionCallButton: functionCallPlayerPause ; only for RotaryEncoderClickable

[PrevNextControl]
Type: TwoButtonControl
Expand Down
14 changes: 7 additions & 7 deletions components/gpio_control/test/gpio_settings_test.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[DEFAULT]
enabled: True

#The following Types exist:
# RotaryEncoder
# TwoButtonControl
# SimpleButton = Button
; The following Types exist:
; RotaryEncoder
; TwoButtonControl
; SimpleButton = Button
[VolumeControl]
enabled: True
Type: RotaryEncoder
Expand All @@ -14,12 +14,12 @@ pull_up: True
hold_time: 0.3
hold_repeat: True
timeBase: 0.1
#timeBase only for rotary encoder
; timeBase only for rotary encoder
functionCallDown: functionCallVolD
functionCallUp: functionCallVolU
functionCallTwoButtons: functionCallVol0
# functionCallTwoButtons only for TwoButtonControl
#functionCallButton: functionCallPlayerPause ; only for RotaryEncoderClickable
; functionCallTwoButtons only for TwoButtonControl
; functionCallButton: functionCallPlayerPause ; only for RotaryEncoderClickable

[PrevNextControl]
Type: TwoButtonControl
Expand Down

0 comments on commit 6d52f27

Please sign in to comment.