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 portduino platform, encode SPI device in spi_host #561

Merged
merged 2 commits into from
May 1, 2024

Conversation

jp-bennett
Copy link
Contributor

@mverch and I hashed out the SPI device problem, and what we came up with was a scheme to encode the SPI bus as the lower 4 bits of spi_host, and the device as the upper 4 bits. The change on the Portduino side was to make sure that multiple HardwareSPI objects could be created, and safely point to the same device.

@jp-bennett jp-bennett marked this pull request as draft April 29, 2024 19:02
@jp-bennett jp-bennett force-pushed the Portduino-better-SPI branch from 4e63c53 to 3898392 Compare April 30, 2024 01:08
@jp-bennett jp-bennett force-pushed the Portduino-better-SPI branch from 3898392 to 858176e Compare April 30, 2024 01:09
@jp-bennett jp-bennett marked this pull request as ready for review April 30, 2024 01:36
@jp-bennett
Copy link
Contributor Author

Much simpler, moved the gnarly bits down into the Portduino layer. Also unified the approach between the touch and panel SPI layers.

@mverch67
Copy link

Looks better now :)

@jp-bennett
Copy link
Contributor Author

@tobozo what do we think about this approach?

@tobozo
Copy link
Collaborator

tobozo commented May 1, 2024

@jp-bennett much lighter, less is more 👍
@mverch67 thanks for helping with the review ❤️

@tobozo tobozo merged commit 5a39989 into lovyan03:develop May 1, 2024
88 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.

3 participants