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

Project location for generic, non-project scripts #83

Open
hwillemen opened this issue Mar 10, 2023 · 0 comments
Open

Project location for generic, non-project scripts #83

hwillemen opened this issue Mar 10, 2023 · 0 comments

Comments

@hwillemen
Copy link

hwillemen commented Mar 10, 2023

So I have 3 scripts that I need a location for.

  1. a script for trains with lights.
    purpose: make a remote optional for trains:
    hub button can start/stop motor, stop script or turn off hub.
    dynamically re-connects to a remote when available (fill in name for a specific one)
    speed / brightness is loaded from flash on start and saved on change.
    location proposed: projects->sets->city & train->"trains with lights and optional remote"

  2. a diagnostics script.
    purpose: dynamically scans all ports for devices and sets motors and reads sensors.
    can run on any hub with any motor/sensor attached.
    location: does not fit under sets, tutorials or remix.
    right now there is a pull request open for pybricks-api but I agree that it IS a large script.
    Might be interesting though to get a reference to it from pybricks-api: pupdevices page as well.

  3. single button example (short script).
    purpose: a more universal version of https://docs.pybricks.com/en/latest/hubs/cityhub.html -> "Using the stop button during your program" and similar ones for other hubs.
    it checks the button during runtime and has different actions for
    short press, 2s press (exit) and 5s press (power off).
    location: if you are ok with it I could replace the existing example with this one.

Let me know if you agree with the locations.

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

No branches or pull requests

1 participant