Skip to content

implement software SPI (not tested), custom TwoWire instance (tested)#19

Open
wb1016 wants to merge 1 commit intofinani:masterfrom
wb1016:master
Open

implement software SPI (not tested), custom TwoWire instance (tested)#19
wb1016 wants to merge 1 commit intofinani:masterfrom
wb1016:master

Conversation

@wb1016
Copy link
Copy Markdown

@wb1016 wb1016 commented Aug 2, 2024

by using Adafruit's LSM6DS and BusIO library as reference, i have implemented software SPI and ability to accept custom TwoWire instance. this is quite necessary for various ESP32 boards since they dont use predefined pins for communication.
this is my first cpp work. code review is welcomed.

@finani
Copy link
Copy Markdown
Owner

finani commented Aug 6, 2024

Thank you for your contribution!

The default target board is Arduino, so please add comments like this.

I checked a few points do not follow formats such as whitespace in the parenthesis, but don't mind about formats.
I will update the format file and apply it all.

Everything else looks great!

One thing I worried about is I have no test device now.
Could you test your code with SPI?

@wb1016
Copy link
Copy Markdown
Author

wb1016 commented Aug 8, 2024

i only have my test device in I2C interface. i'll ask someone to test my code instead.

@finani
Copy link
Copy Markdown
Owner

finani commented Aug 8, 2024

Awesome! Thank you!

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