Arduino
Arduino copied to clipboard
Update SPI.h - Add transfer_out
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