added informative comments

This commit is contained in:
2020-10-13 15:48:13 +02:00
parent 651ae6ed44
commit 976c15c9b6
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -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;