README.rst
parent
b23b666a34
commit
4c9be3f665
47
README.rst
47
README.rst
|
@ -35,7 +35,52 @@ Before starting Mopidy, you must add configuration for
|
||||||
Mopidy-Raspberry-GPIO to your Mopidy configuration file::
|
Mopidy-Raspberry-GPIO to your Mopidy configuration file::
|
||||||
|
|
||||||
[raspberry-gpio]
|
[raspberry-gpio]
|
||||||
# TODO: Add example of extension config
|
enabled = true
|
||||||
|
bcm0 =
|
||||||
|
bcm1 =
|
||||||
|
bcm2 =
|
||||||
|
bcm3 =
|
||||||
|
bcm4 = play_pause,active_low,30
|
||||||
|
bcm5 = volume_up,active_low,30
|
||||||
|
bcm6 = volume_down,active_low,30
|
||||||
|
bcm7 =
|
||||||
|
bcm8 =
|
||||||
|
bcm9 =
|
||||||
|
bcm10 =
|
||||||
|
bcm11 =
|
||||||
|
bcm12 =
|
||||||
|
bcm13 =
|
||||||
|
bcm14 =
|
||||||
|
bcm15 =
|
||||||
|
bcm16 =
|
||||||
|
bcm17 =
|
||||||
|
bcm18 =
|
||||||
|
bcm19 =
|
||||||
|
bcm20 =
|
||||||
|
bcm21 =
|
||||||
|
bcm22 =
|
||||||
|
bcm23 =
|
||||||
|
bcm24 =
|
||||||
|
bcm25 =
|
||||||
|
bcm26 =
|
||||||
|
bcm27 =
|
||||||
|
|
||||||
|
Each bcmN entry corresponds to the BCM pin of that number.
|
||||||
|
|
||||||
|
You must assign an event, mode and bouncetime (ms) to your desired pins.
|
||||||
|
|
||||||
|
Supported events:
|
||||||
|
|
||||||
|
- play_pause
|
||||||
|
- volume_up
|
||||||
|
- volume_down
|
||||||
|
- next
|
||||||
|
- prev
|
||||||
|
|
||||||
|
Supported modes:
|
||||||
|
|
||||||
|
- active_low - configures the pin with a pull-up and triggers when it reads 0/low (RECOMMENDED)
|
||||||
|
- active_high - configures the pin as a pull-down and triggers when it reads 1/high
|
||||||
|
|
||||||
|
|
||||||
Project resources
|
Project resources
|
||||||
|
|
Loading…
Reference in New Issue