mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Renaming SPI.send() to SPI.transfer() to better reflect its bi-directional nature.
This commit is contained in:
@ -38,7 +38,7 @@ class SPIClass {
|
||||
public:
|
||||
SPIClass();
|
||||
|
||||
inline static byte send(byte _data);
|
||||
inline static byte transfer(byte _data);
|
||||
|
||||
// SPI Configuration methods
|
||||
|
||||
@ -59,7 +59,7 @@ public:
|
||||
|
||||
extern SPIClass SPI;
|
||||
|
||||
byte SPIClass::send(byte _data) {
|
||||
byte SPIClass::transfer(byte _data) {
|
||||
SPDR = _data;
|
||||
while (!(SPSR & _BV(SPIF)))
|
||||
;
|
||||
|
Reference in New Issue
Block a user