-
Notifications
You must be signed in to change notification settings - Fork 1.4k
added height and width attributes for displayio #1601
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
Conversation
|
It also looks like Travis failed due to reasons beyond your/my control. @dhalbert any ideas? |
|
@siddacious thanks for the references! I couldn't figure out what the correct type i needed in order to make it show as a property. I don't have the board I was working on anymore (just finished with the pycascades sprint) but I have a pyportal coming in the mail soon so I can update with the requested changes. |
|
The Travis issues are https://git.savannah.gnu.org/ being flaky, which is relatively common. I'll restart those jobs. |
|
Looks great! |
|
Someone else will have to merge but this looks good to go. @dhalbert? |
dhalbert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the uint16_t stuff. Looks good!
shared-bindings/displayio/Display.h
Outdated
| bool common_hal_displayio_display_get_auto_brightness(displayio_display_obj_t* self); | ||
| void common_hal_displayio_display_set_auto_brightness(displayio_display_obj_t* self, bool auto_brightness); | ||
|
|
||
| mp_int_t common_hal_displayio_display_get_width(displayio_display_obj_t* self); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use uint16_t here instead of mp_int_t, because that's the type of width and height that are passed in.
|
Great, thanks! |
Tested with the following:
relates to #1588