8000 Update to embedded-hal 1.0.0 by nik012003 · Pull Request #24 · Finomnis/st7565 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update to embedded-hal 1.0.0 #24

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 8 commits into from
Oct 20, 2024
Merged

Update to embedded-hal 1.0.0 #24

merged 8 commits into from
Oct 20, 2024

Conversation

nik012003
Copy link
Contributor
@nik012003 nik012003 commented Oct 18, 2024

Feats:

  • update embedded-hal to 1.0.0
  • update display-interface to 0.5.0
  • update the examples accordingly
  • added embedded-hal-bus to handle spi connection

Note on examples:

  • Removed with_shared_bus example since version 0.5.0 of display-interface-spi
    encourages the use of embedded-hal-bus, which takes care of the bus sharing.
  • I don't really like that creating a SpiDevice requires passing a Timer, further
    inspection is required.

I didn't manage to test the examples with an nrf board, but I tested the changes on my esp-32c3 board using esp-hal.
Since the update requires the users to update to a new embedded_hal version, I think the version should be updated accordingly (i.e. bumping this crate to 0.6.0).

As of 11.10.2023 probe-run is in maintainance mode. They recommend everyone to switch to probe-rs.
Feats:
- update emvedded-hal to 1.0.0
- update dispaly-interface to 0.5.0
- update the examples accordigly
- added embedded-hal-bus to handle spi connection

Note on examples:
- Removed with_shared_bus example since version 0.5.0 of display-interface-spi
encourages the use of embedded-hal-bus, which takes care of the bus sharing.
- I don't really like that creating an SpiDevice requires passing a Timer, further
inspection is required.
@Finomnis
Copy link
Owner

You can go ahead and bump the version :)

@Finomnis
Copy link
Owner
Finomnis commented Oct 19, 2024

I'm not sure we need waiting anywhere in the transfer, maybe ExclusiveDevice::new_no_delay would work.

In an actual proper project this would not matter, almost all monotonics in RTIC are shareable between peripherals. So this would not utilize a second timer.

@nik012003 nik012003 marked this pull request as ready for review October 19, 2024 15:58
@nik012003
Copy link
Contributor Author

Thank you! I've applied the changes, it should be ready to merge now

8000
@Finomnis
Copy link
Owner
Finomnis commented Oct 19, 2024

Min rust version got changed with display-interface 0.5.0

@nik012003
Copy link
Contributor Author

Oops, I didn't catch that. Updated it

@Finomnis
Copy link
Owner

You did not test the examples yet, right?

@nik012003
Copy link
Contributor Author

You did not test the examples yet, right?

Unfortunately I have an nrf board here, but I forgot my jlink at home so I can only test it in a few weeks. They do compile fine tho, and practically the same code (apart from the spi_bus initialization) works with my esp32c3.

@Finomnis Finomnis changed the title Update dependecies Update dependencies Oct 20, 2024
@Finomnis Finomnis changed the title Update dependencies Update to embedded-hal 1.0.0 Oct 20, 2024
@Finomnis
Copy link
Owner

Works on my board.

@Finomnis
Copy link
Owner

Missing: Doc updates (Readme.md)

@Finomnis
Copy link
Owner

I've fixed the README code and did some minor beautifications in the examples, are you alright with my changes?

@Finomnis Finomnis merged commit 126dd80 into Finomnis:main Oct 20, 2024
12 checks passed
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.

2 participants
0