pimoroni / mopidy-raspberry-gpio

Mopidy GPIO Control Plugin for the Raspberry Pi (Using RPi.GPIO)
Apache License 2.0
21 stars 25 forks source link

Add support for additional per pin event options #4

Closed Gadgetoid closed 4 years ago

Gadgetoid commented 4 years ago

Collect any additional options supplied after the standard "event", "active" and "bouncetime" essentials (in the form "key=value") into an "options" dict on the pinconfig tuple.

With changes these options can then be used to supply event-specific modifiers, such as "step" for customising the granularity of volume control.

Building this one phase at a time because the tests will not run on my Python 3.6.x local Ubuntu install in WSL.

codecov-io commented 4 years ago

Codecov Report

Merging #4 into master will increase coverage by 2.86%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #4      +/-   ##
==========================================
+ Coverage   88.88%   91.75%   +2.86%     
==========================================
  Files           2        2              
  Lines          90       97       +7     
==========================================
+ Hits           80       89       +9     
+ Misses         10        8       -2     
Impacted Files Coverage Δ
mopidy_raspberry_gpio/frontend.py 92.85% <100.00%> (-3.44%) :arrow_down:
mopidy_raspberry_gpio/pinconfig.py 90.24% <100.00%> (+12.46%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e40219c...279ddb4. Read the comment docs.