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

Refactor SPI & Add busio.SPI #199

Merged
merged 10 commits into from
Aug 2, 2021
Merged

Refactor SPI & Add busio.SPI #199

merged 10 commits into from
Aug 2, 2021

Conversation

nkpro2000sr
Copy link
Member

@nkpro2000sr nkpro2000sr commented Jul 1, 2021

closes #196

  • pslab.bus.spi.SPI{Primitive,Master,Slave}.
  • Improvement in set_gain in PGA.
  • Writing Tests.
  • Add busio.SPI.

Copy link
Collaborator

@bessman bessman left a comment

Choose a reason for hiding this comment

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

Overall, this looks very nice! I will give it another look when you cross off additional tasks in your list.

pslab/bus/spi.py Outdated Show resolved Hide resolved
pslab/bus/spi.py Show resolved Hide resolved
pslab/bus/spi.py Show resolved Hide resolved
pslab/bus/spi.py Outdated Show resolved Hide resolved
Comment on lines 379 to 383
ppre = SPIMaster._primary_prescaler
spre = SPIMaster._secondary_prescaler
cke = SPIMaster._clock_edge
ckp = SPIMaster._clock_polarity
smp = SPIMaster._smp
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps a SPI.get_parameters method is in order?

@nkpro2000sr
Copy link
Member Author

Moved "Update external sensors to support this new API." to #201

@nkpro2000sr nkpro2000sr changed the title Refactor SPI Refactor SPI & Add busio.SPI Aug 1, 2021
@nkpro2000sr
Copy link
Member Author

@bessman
I also added the busio.SPI to this PR, since it depends on this unmerged PR. And PR is ready to review and merge.

@bessman bessman merged commit 4a5e88c into fossasia:development Aug 2, 2021
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.

Refactor pslab.bus.spi.SPI
2 participants