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

Upgrade pygamer BSP display driver and graphics dependencies #777

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

kyp44
Copy link
Contributor

@kyp44 kyp44 commented Oct 31, 2024

Summary

Most of the pygamer BSP dependencies were upgraded with #766, which was merged. The remaining dependencies are upgraded to the latest version with this PR:

  • st7735-lcd to v0.10.0
  • embedded-graphics to v0.8.1
  • tinybmp to v0.6

Important Note

These dependency upgrades depend on #772, which has already been merged into the pygamer-upgrade-graphics branch but not yet into master. Hence, this PR should probably not be merged until #772 has been merged first.

Checklist

  • All new or modified code is well documented, especially public items
  • No new warnings or clippy suggestions have been introduced - CI will deny clippy warnings by default! You may #[allow] certain lints where reasonable, but ideally justify those with a short comment.

@kyp44
Copy link
Contributor Author

kyp44 commented Nov 3, 2024

I also just noticed that README.md lists pygamer as a BSP for the atsame53j, but the PyGamer actually features a ATSAMD51J19 microcontroller (source), which is also reflected in the actual BSP. This PR branch now corrects this, as well as marks it as Tier 1.

@sajattack
Copy link
Member

Thanks for contributing. I'll revisit this after #772 merges

Copy link
Member

@sajattack sajattack left a comment

Choose a reason for hiding this comment

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

you need to update crates.json to make it tier 1

@sajattack
Copy link
Member

Oh that was done in another pr?

sajattack
sajattack previously approved these changes Nov 9, 2024
boards/pygamer/src/pins.rs Outdated Show resolved Hide resolved
boards/pygamer/Cargo.toml Show resolved Hide resolved
@jbeaurivage
Copy link
Contributor

Oh that was done in another pr?

Yep, already taken care of!

@kyp44 kyp44 force-pushed the pygamer-upgrade-graphics branch 2 times, most recently from 6bb2cfb to 7195ddf Compare November 10, 2024 00:20
kyp44 added a commit to kyp44/atsamd that referenced this pull request Nov 11, 2024
* Changes the `DisplayError` to an enum with variants to provide more detail about why the display driver initialization failed.
* Exposes the `dma` and `max-channels` HAL features in the BSP for convenience.
* Adds a `cortex_m::asm::wfi()` call inside the terminal infinite loop in the examples to address the `empty_loop` clippy lint.
Dan Whitman and others added 2 commits November 10, 2024 21:13
  * Upgrades the display and graphics dependencies: st7735-lcd, embedded-graphics, tinybmp
  * This completes the upgrades of all dependencies.
  * Corrects the README.md to list `pygamer` as a `samd51j` BSP instead of the erroneous `same53j`.
  * Adds an empty `DisplayError` and a `DisplayDriver` type alias, both to address clippy lints.
* Changes the `DisplayError` to an enum with variants to provide more detail about why the display driver initialization failed.
* Exposes the `dma` and `max-channels` HAL features in the BSP for convenience.
* Adds a `cortex_m::asm::wfi()` call inside the terminal infinite loop in the examples to address the `empty_loop` clippy lint.
@kyp44 kyp44 force-pushed the pygamer-upgrade-graphics branch from 8bd22af to 7a4c4cb Compare November 11, 2024 02:13
@jbeaurivage jbeaurivage merged commit 4b701a4 into atsamd-rs:master Nov 11, 2024
108 checks passed
@github-actions github-actions bot mentioned this pull request Nov 11, 2024
@kyp44 kyp44 deleted the pygamer-upgrade-graphics branch November 11, 2024 13:45
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.

3 participants