-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Feature] Ideas to support user configurable menu on Spike Prime Hub #1064
Comments
I updated "option 1" with the idea of having a This would make it the simplest of all the options, and still quite easy to use and powerful. No changes to Pybricks Code or firmware required. This has the additional advantage that the hub does not need to be explicitly initialized, so there are no side effects prior to running the selected programs. |
Here is how we did it: https://github.com/MonongahelaCryptidCooperative/FLL/ |
Thanks for sharing! |
This implements the first approach discussed in pybricks/support#1064.
This implements the first approach discussed in pybricks/support#1064.
This implements the first approach discussed in pybricks/support#1064.
We've selected option 1 for now. Other solutions may be considered in the future, but this should provide the key functionality for most use cases. Now we just need to add documentation and/or a tutorial, see pybricks/pybricks-api#144. |
Is your feature request related to a problem? Please describe.
FLL teams would like to have an easy way to have an on-screen menu.
Here are some ideas.
1. Document how to make a Python program that does this
Something like #861.
This could get especially easy if we had a basic
hub_menu
function as part ofpybricks.tools
:We could also make a (separate) variant that uses colors instead of letters, so that it could work on the small hubs too.
2. Pybricks Code UI script template
Generates a script just like
#1
as one part of the "Create a new file" dialog, with dropdowns like this:Single uppercase letters like this seems practical and easy to remember at competition day too, but any other number/visual could work.
3. Like
#2
, but download it right awayInstead of generating a template script, it just downloads the "menu" program. Same dropdown UI as above except:
4. Firmware side solution
See #139. You select a slot on the hub, and Pybricks Code downloads it there.
It is not entirely clear how this should work since there is no file system.
Additional notes.
boot.py
could solve that, but then it not clear how to exit to allow downloading a new program. And one extra click shouldn't be too bad.The text was updated successfully, but these errors were encountered: