-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Rename _pixelbuf to adafruit_pixelbuf, alias. #5010
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
The updates to NeoPixel and DotStar are incoming. |
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.
Looks good! Some things to change.
@@ -177,7 +177,7 @@ const mp_obj_property_t pixelbuf_pixelbuf_bpp_obj = { | |||
//| before they are adjusted for brightness.""" | |||
//| | |||
STATIC mp_obj_t pixelbuf_pixelbuf_obj_get_brightness(mp_obj_t self_in) { | |||
return mp_obj_new_float(common_hal__pixelbuf_pixelbuf_get_brightness(self_in)); | |||
return mp_obj_new_float(common_hal__adafruit_pixelbuf_pixelbuf_get_brightness(self_in)); |
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.
return mp_obj_new_float(common_hal__adafruit_pixelbuf_pixelbuf_get_brightness(self_in)); | |
return mp_obj_new_float(common_hal_adafruit_pixelbuf_pixelbuf_get_brightness(self_in)); |
Build failures are due to xtensa build caching. Nothing to do with your changes. To fix, we need to change the cache key:
NEW
In general, we update the key to today's date. It is not clear to me at all why and when this happens, but this kind of thing is the fix. |
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.
Great!
_pixelbuf
toadafruit_pixelbuf
._pixelbuf
toadafruit_pixelbuf
for backwards compatibility.