Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/configureable gpio buttons #906

Merged

Conversation

veloxidSchweiz
Copy link
Contributor

Hi
I had a little bit of time to include two simple LEDs in the new gpio_control class.
One which lights up as soon as the gpio_control is started(device=LED), the other one only when a connection to MPD/mopidy can be established (MPDStatusLED)
I am NOT yet checking on a regulary basis if the connection is still there but that would be the next step. Also included an example config but the pins should probably be updated to correspond to the right pins....
( I also did a minor refactoring and moved the VolumeControl class)

@s-martin s-martin linked an issue Apr 16, 2020 that may be closed by this pull request
@s-martin s-martin added this to the 2.0 milestone Apr 16, 2020
@s-martin s-martin added bug and removed enhancement labels Apr 16, 2020
@s-martin
Copy link
Collaborator

Would this implementation replace the existing gpio-buttons.py file completely?

If yes, then we should think about how we roll this out.

One idea could be to leave like it is for 2.0 and maybe provide a howto how interested users could use it and migrate their installation. For 3.0 we could then make it the default implementation, but then we should provide a (automatic) migration of existing settings.

@veloxid, @MiczFlor, @ZyanKLee, what do you think?

@veloxidSchweiz
Copy link
Contributor Author

We should check, if we can combine this with #903

This is only a check for this component. but probably a good idea to somehow define what is required for automatic testing of components...

@veloxidSchweiz
Copy link
Contributor Author

damn i didn't wanted to create confligting files... made something wrong when rebasing /merging develop (I am not used to the github fork workflow...)

@veloxidSchweiz veloxidSchweiz force-pushed the feature/configureableGPIOButtons branch from 79589e2 to 63d39f6 Compare April 18, 2020 19:01
@veloxidSchweiz
Copy link
Contributor Author

Hi
Could solve the rebasing issues.
@s-martin : Could you merge than @narf0815 could try it...

@s-martin s-martin merged commit e175cf7 into MiczFlor:develop Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 | rotary encoder on developer
3 participants