Skip to content

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

Merged
merged 3 commits into from
Jul 16, 2021

Conversation

kattni
Copy link

@kattni kattni commented Jul 16, 2021

  • Renames _pixelbuf to adafruit_pixelbuf.
  • Aliases _pixelbuf to adafruit_pixelbuf for backwards compatibility.

@kattni kattni requested review from tannewt and dhalbert July 16, 2021 17:33
@kattni
Copy link
Author

kattni commented Jul 16, 2021

The updates to NeoPixel and DotStar are incoming.

Copy link
Collaborator

@dhalbert dhalbert left a 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));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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));

@tannewt tannewt removed their request for review July 16, 2021 18:17
@dhalbert
Copy link
Collaborator

Build failures are due to xtensa build caching. Nothing to do with your changes. To fix, we need to change the cache key:
Change
.github/workflows/build.yml, line 534:
OLD

        key: ${{ runner.os }}-idf-tools-${{ hashFiles('.git/modules/ports/esp32s2/esp-idf/HEAD') }}-20210506

NEW

        key: ${{ runner.os }}-idf-tools-${{ hashFiles('.git/modules/ports/esp32s2/esp-idf/HEAD') }}-20210716

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.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@dhalbert dhalbert merged commit 8e0eb2f into adafruit:main Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename _pixelbuf and adafruit_pypixelbuf to match - as adafruit_pixelbuf
2 participants