Skip to content

Commit f336a49

Browse files
authored
Update w5100.h
added #define SPI_ETHERNET_SPEED to allow for an explicit change of SPI speed
1 parent 481f960 commit f336a49

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/utility/w5100.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
#include <Arduino.h>
1818
#include <SPI.h>
1919

20+
// add SPI_ETHERNET_SPEED to allow for an explicit change of SPI speed
21+
#ifndef SPI_ETHERNET_SPEED
22+
#define SPI_ETHERNET_SPEED 14000000
23+
#endif
24+
2025
// Safe for all chips
2126
#define SPI_ETHERNET_SETTINGS SPISettings(14000000, MSBFIRST, SPI_MODE0)
2227

0 commit comments

Comments
 (0)