Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

Update SPI.h - Add transfer_out

Open pamribeirox opened this issue 9 years ago • 1 comments

An alternative "output only" transfer that doesn't destroy the source buffer with the bytes returned from the slave device. Some code simplifications and const enforcement of input variables Tested in ATMEGA328p (UNO)

  • no speed changes noticed (comparing the the original function)
  • writing/reading to an SPI RAM returns the correct values

pamribeirox avatar Feb 13 '16 23:02 pamribeirox

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Apr 09 '21 13:04 CLAassistant