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

[Bug] PrimeHub/InventorHub: hub.display.image(...) argument mismatch b/w firmware & documented API #409

Closed
TheVinhLuong102 opened this issue Jul 30, 2021 · 6 comments
Labels
documentation Improvements or additions to documentation hub: primehub/inventorhub Issues related to the LEGO SPIKE Prime hub and LEGO MINDSTORMS Robot Invetor hub

Comments

@TheVinhLuong102
Copy link

Hi @laurensvalk, @dlech,

For the PrimeHub/InventorHub, the method .display.image(...)'s argument name in the documented API is matrix=..., but the underlying firmware accepts image=... instead.

Vinh

@TheVinhLuong102 TheVinhLuong102 added the triage Issues that have not been triaged yet label Jul 30, 2021
@dlech
Copy link
Member

dlech commented Jul 30, 2021

Off topic: Can we save the @ mentions for when you really need to get our attention (like if it has been 3 or 4 weeks and we haven't responded - or you have a specific question for a specific person)? Each time we are @ mentioned, it creates an extra notification.

@dlech dlech added documentation Improvements or additions to documentation and removed triage Issues that have not been triaged yet labels Jul 30, 2021
@TheVinhLuong102
Copy link
Author

Ok noted David! 👍

@dlech
Copy link
Member

dlech commented Jul 30, 2021

Thanks 😄

@laurensvalk
Copy link
Member

Since the Prime Hub isn't part of a release yet, we still have some flexibility to reconsider the API.

We've currently grouped the "images" under pybricks.parameters.Icon, so it's currently like this:

hub.display.image(Icon.HAPPY)

I called them icons because at 5x5 pixels it's a bit of a stretch to call them images.

So another option that could make sense is

hub.display.icon(Icon.HAPPY)

@laurensvalk laurensvalk added the hub: primehub/inventorhub Issues related to the LEGO SPIKE Prime hub and LEGO MINDSTORMS Robot Invetor hub label Aug 6, 2021
@TheVinhLuong102
Copy link
Author

Laurens,

Yes I think "Icon" / "icon" sounds great. It's better to settle on one way to call these -- especially for young users -- instead of having "icon" + "image" + "matrix" :)

Vinh

laurensvalk added a commit to pybricks/pybricks-api that referenced this issue Nov 22, 2022
laurensvalk added a commit to pybricks/pybricks-api that referenced this issue Nov 22, 2022
laurensvalk added a commit to pybricks/pybricks-api that referenced this issue Nov 22, 2022
@laurensvalk
Copy link
Member

So another option that could make sense is

hub.display.icon(Icon.HAPPY)

This is done. Thanks @TheVinhLuong102!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation hub: primehub/inventorhub Issues related to the LEGO SPIKE Prime hub and LEGO MINDSTORMS Robot Invetor hub
Projects
None yet
Development

No branches or pull requests

3 participants