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

Mario class for connecting to Mario/Luigi via Bluetooth #445

Open
dlech opened this issue Aug 20, 2021 · 2 comments
Open

Mario class for connecting to Mario/Luigi via Bluetooth #445

dlech opened this issue Aug 20, 2021 · 2 comments
Labels
enhancement New feature or request hub: mario/luigi Issues related to the LEGO Mario and Luigi hubs topic: bluetooth Issues involving bluetooth topic: remote control Issues related to remotly controlling hubs

Comments

@dlech
Copy link
Member

dlech commented Aug 20, 2021

Is your feature request related to a problem? Please describe.
This stems from the discussion in pybricks/pybricks-micropython#68 where @NStrijbosch has proposed a generic LWP3 class. While this is certainly useful and stands on its own, it does require that users encode and decode messages from the LWP3 protocol which is not exactly beginner-friendly.

Describe the solution you'd like
Since Mario seems to be a somewhat simple device (no motors, no I/O ports), it seems like we could make a specialized Mario class that provides a better API for using Mario like a sensor.

Describe alternatives you've considered
Just use the generic LWP3 class for Mario.

Additional context
I don't have a Mario hub, so I don't know what all of the capabilities are yet. Is there a single configuration that would work for 80% of users?

@dlech dlech added enhancement New feature or request topic: bluetooth Issues involving bluetooth topic: remote control Issues related to remotly controlling hubs hub: mario/luigi Issues related to the LEGO Mario and Luigi hubs labels Aug 20, 2021
@NStrijbosch
Copy link

I don't know what all of the capabilities are yet

As far as I know Mario has 3 sensors:

  • The barcode/color sensor. With the modes:
    - recognize both barcodes an ID's of colors
    - RGB mode (i am not sure if it is possible to combine this with barcode scanning in a combi mode)
  • The IMU. WIth the modes:
    - acceleration
    - gestures, e.g., freefall (There are a whole bunch more than the standard gestures in the Prime hub)
  • The Pants sensor. With the mode
    - Detect what kind of pants Mario/Luigi is wearing

Some other relevant stuff that you can do:

  • Turn up/down its volume

Is there a single configuration that would work for 80% of users?

I would say this should include:

  • Barcode/Color ID's (I think including the barcodes is important, this is the only LEGO sensor with this capability, therefore a reason to use Mario/Luigi)
  • Gesture
  • Pants sensor
  • Volume control

@Tcm0
Copy link

Tcm0 commented Sep 15, 2021

https://github.com/bricklife/LEGO-Mario-Reveng/ contains some information on the barcodes, the modes of the hub etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hub: mario/luigi Issues related to the LEGO Mario and Luigi hubs topic: bluetooth Issues involving bluetooth topic: remote control Issues related to remotly controlling hubs
Projects
None yet
Development

No branches or pull requests

3 participants