Open mrohner opened 8 years ago
Are you sure this code is still in use ? I've ran into issues with the CS pin yesterday, and searching in all file using "grep" did only returned one file. This "if defined" doesn't exist anymore. Perhaps it's related to an old verion of the library ?
Where to add this code to adapt for Arduino mega? I'm not sure enc28j60.c is even used during compile.
enc28j60.c changes:
if defined(AVR_ATmega2560) || defined(AVR_ATmega1280)
define ENC28J60_CONTROL_CS 53
define SPI_MOSI 51
define SPI_MISO 50
define SPI_SCK 52
else;
define ENC28J60_CONTROL_CS 10
define SPI_MOSI 11
define SPI_MISO 12
define SPI_SCK 13
endif;