forked from mohr/ArduinoIO
added informative comments
This commit is contained in:
@@ -126,6 +126,7 @@ void transferSPI(uint8_t address, uint8_t *data, size_t datalen) {
|
||||
// requires the slave select to be driven low.
|
||||
CS_PORT = ~address;
|
||||
SPI.transfer(data, datalen);
|
||||
// some MGM stuff. This delay might not be needed for other devices.
|
||||
delay(100);
|
||||
// Pull the slave select high again.
|
||||
CS_PORT = 0xff;
|
||||
|
||||
Reference in New Issue
Block a user