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

feat(nrf52xxx/adc|spi): adjustable resolution, improve SPI #4660

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from

Conversation

milkpirate
Copy link

@milkpirate milkpirate commented Dec 15, 2024

What I did

SPI

  • Create SPIMode type
  • Make SPI implement io.Reader, io.Writer
  • Update formatting to align with other switch-cases
  • Update SPI documentation reference

ADC

  • Change ADC methods to pointer receivers
  • Make ADC resolution adjustable
  • Remove nonsensical calculations (at least to me they seemed like, please correct me if I'm wrong)
  • Update ADC documentation reference

Open questions

  • Will make sense to change the signature of ADC.Get() to return an error? Since it will change the interface and might break things.
  • How to run the added tests?

@milkpirate milkpirate force-pushed the feat/nrf52xxx/adc/make-resolution-changeable branch 5 times, most recently from 72d63a4 to f10ed73 Compare December 16, 2024 22:25
@milkpirate milkpirate marked this pull request as ready for review December 16, 2024 22:36
Signed-off-by: Paul Schroeder <[email protected]>
@milkpirate milkpirate force-pushed the feat/nrf52xxx/adc/make-resolution-changeable branch from f10ed73 to c84ce10 Compare December 17, 2024 00:16
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.

1 participant