Mopidy extension for GPIO input on a Raspberry Pi
Project description
Mopidy extension for GPIO input on a Raspberry Pi
Installation
Install by running:
pip install Mopidy-Raspberry-GPIO
Or, if available, install the Debian/Ubuntu package from apt.mopidy.com.
Configuration
Before starting Mopidy, you must add configuration for Mopidy-Raspberry-GPIO to your Mopidy configuration file:
[raspberry-gpio] enabled = true bcm5 = play_pause,active_low,150 bcm6 = volume_down,active_low,150 bcm16 = next,active_low,150 bcm20 = volume_up,active_low,150
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
Credits
Original author: Phil Howard
Current maintainer: Phil Howard
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file Mopidy-Raspberry-GPIO-0.0.2.tar.gz
.
File metadata
- Download URL: Mopidy-Raspberry-GPIO-0.0.2.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c81902d56f350f407d3c695b14ec79b7618b5d6ba06709e99113194f57d65faf |
|
MD5 | 3f2070450d44c17cc3e3401b003b5601 |
|
BLAKE2b-256 | 0288d8f7d071e0d1b3c2fa661781c143fa999e6949cdf2a187d5b7a1e4b63b59 |