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

Add board.DISPLAY to MagTag. Fix luma computation #3680

Merged
merged 4 commits into from
Nov 14, 2020

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Nov 12, 2020

  • Initialize the EPaper display on the MagTag at start.
  • Tweak the display send to take a const buffer.
  • Correct Luma math
    • Multiply the blue component, not add.
    • Add all of the components together before dividing. This
      reduces the impact of truncated division.
  • Add .busy property for when the EPaper display is refreshing.

@jepler
Copy link
Member

jepler commented Nov 12, 2020

Looks like additional functions in the other ports need to be constified. Other than that, looks good -- good catch on the luma error.

* Initialize the EPaper display on the MagTag at start.
* Tweak the display send to take a const buffer.
* Correct Luma math
  * Multiply the blue component, not add.
  * Add all of the components together before dividing. This
    reduces the impact of truncated division.
* No weak link for modules. It only impacts _os and _time and is
  already disabled for non-full builds.
* Turn off PA00 and PA01 because they are the crystal on the Metro
  M0 Express.
* Change ejected default to false to move it to BSS. It is set on
  USB connection anyway.
* Set sinc_filter to const. Doesn't help flash but keeps it out of
  RAM.
@tannewt tannewt force-pushed the magtag_builtin_display branch from ffd8139 to bda3267 Compare November 14, 2020 02:58
Copy link
Member

@ladyada ladyada left a comment

Choose a reason for hiding this comment

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

tested, - board comes up with display existing and color images look good 👍
IMG_0162

@ladyada ladyada merged commit f2e911a into adafruit:main Nov 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants