Permalink
Browse files

removed SPI definitions from enc28j60.h

  • Loading branch information...
1 parent ecb62d9 commit 8d90d45273e1c717e4fe5e1c82df8fcee651e51d @vicatcu vicatcu committed Oct 7, 2012
Showing with 0 additions and 12 deletions.
  1. +0 −12 enc28j60.h
View
@@ -12,18 +12,6 @@
#ifndef ENC28J60_H
#define ENC28J60_H
-
-#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
- const byte SPI_SS = 53;
- const byte SPI_MOSI = 51;
- const byte SPI_MISO = 50;
- const byte SPI_SCK = 52;
-#else
- const byte SPI_SS = 10;
- const byte SPI_MOSI = 11;
- const byte SPI_MISO = 12;
- const byte SPI_SCK = 13;
-#endif
class ENC28J60 {
public:

3 comments on commit 8d90d45

Why was the references removed? How do we go about changing the file to work with the Mega?

Collaborator

vicatcu replied Jun 28, 2013

Because these are defined in the Arduino core / platform files. It shouldn't be redefined in a library. See #51 for full rationale.

Please sign in to comment.