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

spresense: minor i2c and spi fixes #4386

Merged
merged 2 commits into from
Mar 11, 2021
Merged

Conversation

kamtom480
Copy link

For the busio.SPI() class only one pin (MISO or MOSI) needs to be defined now. There is no need to pass both of them.

I2C_TRANSFER returns a negative value when an error occurs. busio.I2C class expects error values to be positive. Adding a minus changes the error values from negative to positive.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Looks good - thanks!

@tannewt tannewt merged commit a32359b into adafruit:main Mar 11, 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.

None yet

3 participants