From 6d52f2741b9e2a4c8daad06500684bce1c07f94c Mon Sep 17 00:00:00 2001 From: s-martin Date: Fri, 5 Jun 2020 21:43:17 +0200 Subject: [PATCH] Change used type to existing (#997) * Change used type to existing * use of ; for commenting, should fix errors related to in line comments --- .../gpio_control/example_configs/gpio_settings.ini | 8 ++++---- .../gpio_settings_rotary_and_led.ini | 8 ++++---- .../example_configs/gpio_settings_test.ini | 14 +++++++------- .../gpio_control/test/gpio_settings_test.ini | 14 +++++++------- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/components/gpio_control/example_configs/gpio_settings.ini b/components/gpio_control/example_configs/gpio_settings.ini index a42926215..065d326db 100644 --- a/components/gpio_control/example_configs/gpio_settings.ini +++ b/components/gpio_control/example_configs/gpio_settings.ini @@ -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 diff --git a/components/gpio_control/example_configs/gpio_settings_rotary_and_led.ini b/components/gpio_control/example_configs/gpio_settings_rotary_and_led.ini index 560ccd914..206fc4b0d 100644 --- a/components/gpio_control/example_configs/gpio_settings_rotary_and_led.ini +++ b/components/gpio_control/example_configs/gpio_settings_rotary_and_led.ini @@ -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 diff --git a/components/gpio_control/example_configs/gpio_settings_test.ini b/components/gpio_control/example_configs/gpio_settings_test.ini index 91659e03a..78b859287 100644 --- a/components/gpio_control/example_configs/gpio_settings_test.ini +++ b/components/gpio_control/example_configs/gpio_settings_test.ini @@ -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 @@ -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 diff --git a/components/gpio_control/test/gpio_settings_test.ini b/components/gpio_control/test/gpio_settings_test.ini index 91659e03a..78b859287 100644 --- a/components/gpio_control/test/gpio_settings_test.ini +++ b/components/gpio_control/test/gpio_settings_test.ini @@ -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 @@ -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