-
-
Notifications
You must be signed in to change notification settings - Fork 7k
SPI Transactions #2223
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
SPI Transactions #2223
Conversation
I read your doc about this change. http://www.dorkbotpdx.org/blog/paul/spi_transactions_in_arduino |
Nice job! But shouldn't there be a function that would allow to transfer multiple bytes at once for sam like the in the AVR implementation: https://github.com/arduino/Arduino/pull/2223/files#diff-0c14650b7ecec58b8d50bbf23c9c0a30R211 to make it compatible? |
Opps, those extra transfer() functions were only done for AVR. Cristian, would you like a new pull request without those? Or maybe they could simply be commented out, until someone does them for Arduino Due? |
@PaulStoffregen |
Thanks Cristian. :) This has been in the works since April, and on my wish-list since at least January. A few more days or weeks isn't going to matter much in the grand scheme of things. I'm looking forward to patching many more of the third party SPI-based libraries. Adafruit's accepted a couple patches, but a couple others I've approached have said they'll merge patches once 1.5.8 has this code. Can't say I blame them... I probably wouldn't merge support for any feature that isn't yet "official". |
Now it's in 1.5.8 so... no more excuses ;-) |
I'm not having much success getting 3rd party library authors to adopt the new API without any official Arduino release. Nobody is moved by the fact it's on GitHub and the nightly builds. Please consider making a 1.5.8 release soon. |
@PaulStoffregen is has already been implemented in the USB Host library: https://github.com/felis/USB_Host_Shield_2.0/tree/SPI, just so you know :) But yes we are waiting for a 1.5.8 release before we are going to merge it into master, also it is still missing one of the transfer functions, as mentioned here: #2223 (comment). |
Hello Paul, |
Like this? |
Great ! |
Might work on Due, might not. When you try it, let me know? Or if there's a simple fix, send a pull request... |
Not working uno and arduino-1.05-r2 and with arduino-1.5.8nighly. This give compilation errors. |
Not working with arduino 1.5.7. Compilation error |
No description provided.