From 48b2c07da57154768193676b6fbc6a4f4d432ad6 Mon Sep 17 00:00:00 2001 From: T0bi79 <51325380+T0bi79@users.noreply.github.com> Date: Thu, 9 Sep 2021 19:50:17 +0200 Subject: [PATCH 1/2] Update gpio_settings.ini.sample --- misc/sampleconfigs/gpio_settings.ini.sample | 77 ++++++++++++++------- 1 file changed, 53 insertions(+), 24 deletions(-) diff --git a/misc/sampleconfigs/gpio_settings.ini.sample b/misc/sampleconfigs/gpio_settings.ini.sample index 92839ebd9..b05004c7a 100644 --- a/misc/sampleconfigs/gpio_settings.ini.sample +++ b/misc/sampleconfigs/gpio_settings.ini.sample @@ -1,16 +1,18 @@ [DEFAULT] enabled: True +antibouncehack: False + [VolumeControl] enabled: True Type: TwoButtonControl ;or RotaryEncoder -PinUp: 5 -PinDown: 6 -pull_up: True +Pin1: 5 +Pin2: 6 +pull_up_down: pull_up hold_time: 0.3 -hold_repeat: True +hold_mode: Repeat timeBase: 0.1 ;only for RotaryEncoder -functionCallDown: functionCallVolD -functionCallUp: functionCallVolU +functionCall1: functionCallVolU +functionCall2: functionCallVolD functionCallTwoButtons: functionCallVol0 ;only for TwoButtonControl [PrevNextControl] @@ -21,72 +23,99 @@ Pin2: 23 functionCall1: functionCallPlayerPrev functionCall2: functionCallPlayerNext functionCallTwoButtons: None -pull_up: True +pull_up_down: pull_up hold_time: 0.3 -hold_repeat: False +hold_mode: None [PlayPause] enabled: True Type: Button Pin: 27 -pull_up: True -hold_time: 0.3 +pull_up_down: pull_up functionCall: functionCallPlayerPause [Shutdown] enabled: False Type: Button Pin: 3 -pull_up: True +pull_up_down: pull_up +hold_mode: Postpone hold_time: 2 functionCall: functionCallShutdown +[PauseShutdown] +enabled: False +Type: Button +Pin: 3 +pull_up_down: pull_up +hold_time: 2.0 +hold_mode: SecondFunc +functionCall: functionCallPlayerPause +functionCall2: functionCallShutdown + [Volume0] enabled: False Type: Button Pin: 17 -pull_up: True -hold_time: 0.3 +pull_up_down: pull_up functionCall: functionCallVol0 [VolumeUp] enabled: False Type: Button Pin: 16 -pull_up: True +pull_up_down: pull_up hold_time: 0.3 -hold_repeat: True +hold_mode: Repeat functionCall: functionCallVolU [VolumeDown] enabled: False Type: Button Pin: 19 -pull_up: True +pull_up_down: pull_up hold_time: 0.3 -hold_repeat: True +hold_mode: Repeat functionCall: functionCallVolD [NextSong] enabled: False Type: Button Pin: 26 -pull_up: True -hold_time: 0.3 +pull_up_down: pull_up functionCall: functionCallPlayerNext [PrevSong] enabled: False Type: Button Pin: 20 -pull_up: True -hold_time: 0.3 +pull_up_down: pull_up functionCall: functionCallPlayerPrev +[FastForward] +enabled: false +Type: Button +Pin: 7 +pull_up_down: pull_up +functionCall: functionCallPlayerSeekFwd + +[Rewind] +enabled: false +Type: Button +Pin: 8 +pull_up_down: pull_up +functionCall: functionCallPlayerSeekBack + [Halt] enabled: False Type: Button -Pin: 21 -pull_up: True -hold_time: 0.3 +Pin: 25 +pull_up_down: pull_up functionCall: functionCallPlayerPauseForce + +[RFIDDevice] +enabled: True +Type: Button +Pin: 21 +pull_up_down: pull_up +functionCall: functionCallPlayerStop From 4c02d597e1c3c1e2fa917af09e95d9f399bad034 Mon Sep 17 00:00:00 2001 From: T0bi79 <51325380+T0bi79@users.noreply.github.com> Date: Thu, 9 Sep 2021 20:10:23 +0200 Subject: [PATCH 2/2] Update gpio_settings.ini.sample --- misc/sampleconfigs/gpio_settings.ini.sample | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/misc/sampleconfigs/gpio_settings.ini.sample b/misc/sampleconfigs/gpio_settings.ini.sample index b05004c7a..e14444991 100644 --- a/misc/sampleconfigs/gpio_settings.ini.sample +++ b/misc/sampleconfigs/gpio_settings.ini.sample @@ -3,7 +3,7 @@ enabled: True antibouncehack: False [VolumeControl] -enabled: True +enabled: False Type: TwoButtonControl ;or RotaryEncoder Pin1: 5 Pin2: 6 @@ -16,7 +16,7 @@ functionCall2: functionCallVolD functionCallTwoButtons: functionCallVol0 ;only for TwoButtonControl [PrevNextControl] -enabled: True +enabled: False Type: TwoButtonControl Pin1: 22 Pin2: 23 @@ -28,7 +28,7 @@ hold_time: 0.3 hold_mode: None [PlayPause] -enabled: True +enabled: False Type: Button Pin: 27 pull_up_down: pull_up @@ -93,14 +93,14 @@ pull_up_down: pull_up functionCall: functionCallPlayerPrev [FastForward] -enabled: false +enabled: False Type: Button Pin: 7 pull_up_down: pull_up functionCall: functionCallPlayerSeekFwd [Rewind] -enabled: false +enabled: False Type: Button Pin: 8 pull_up_down: pull_up @@ -114,7 +114,7 @@ pull_up_down: pull_up functionCall: functionCallPlayerPauseForce [RFIDDevice] -enabled: True +enabled: False Type: Button Pin: 21 pull_up_down: pull_up