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

Fancy animations and remote control #15

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

joeynelson
Copy link

@joeynelson joeynelson commented Nov 4, 2024

Display a series of animations on the Petal. Button A cycles to next.
Button C switches to a BLE mode. In this mode, button A cycles through broadcast channels, and button B for receive channels. The current broadcast channel is displayed in the center of the petal. The current receive channel is displayed on the outside ring of the petal. Touch wheel motions are broadcast on the broadcast channel. If another badge is listening on that channel it will track the motion on its Petal.

Requires installing https://github.com/pybricks/micropython-bleradio

mpremote mip install https://raw.githubusercontent.com/pybricks/micropython-bleradio/master/bleradio.py

@hexagon5un
Copy link
Member

This is a huge bit of work! Rather than changing the default files, can you spin this out into its own file and simply call it from either boot.py or main.py?

That way, enabling or disabling your functionality would be a matter of one line in the main codebase.

@joeynelson
Copy link
Author

Agreed. I'll work on that, along with some cleanup and documentation.

@joeynelson joeynelson marked this pull request as draft November 10, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants