support icon indicating copy to clipboard operation
support copied to clipboard

[Feature] Simplify hub setup

Open laurensvalk opened this issue 1 year ago • 2 comments

currently, if you only want to broadcast when setting up a hub, you have to show a bunch of other parameters that are not used. it would be nice if we could pick which ones we want to show instead of just expanding indefinitely

image

Originally posted by @dlech in https://github.com/pybricks/pybricks-blocks/issues/24

laurensvalk avatar Mar 07 '24 15:03 laurensvalk

This is primarily an issue for the hub setup blocks, so possibly the solution can be somewhat specific to these blocks.

  • Perhaps configure BLE and/or IMU in a separate block. Still in the setup section, so we can still statically insert it into the hub init in the generated code.
  • Or have a dropdown before the first option to choose BLE broadcast, observe, IMU, or both. See the Remote setup block that does something similar.

laurensvalk avatar Mar 07 '24 15:03 laurensvalk

Since broadcasting and observing is hub independent, maybe they can be separate blocks.

Taking it a step further, it could even be separate in the Python API, though we'd want to keep it backwards compatible and I don't know if we'd have enough space on Move Hub to do this.

laurensvalk avatar Mar 07 '24 15:03 laurensvalk