I’m currently using an Arduino Pro Mini (5v version) with the attached EtherCard library in conjunction with an ENC28j60 module. The default pins are listed as comments in the EtherCard.h file as:
SCK – Pin 13
SO – Pin 12
SI – pin 11
CS – Pin 8
A note on CS, Pin 8: In researching this, I have found that pin 8 or pin 10 can be connected to CS. I have CS connected to pin 10.
I have another library for an audio task in this project and unfortunately, it uses some of the same pins – 9, 10, 11 and 3. It would be really great if I could have the ENC28j60 use pins other than the default.
I have looked through the files bundled in the EtherCard zip library, but don’t recognize where the default pin numbers are set. I don’t have a great deal of Arduino experience, so perhaps I’m overlooking something.
Could someone look at the attached EtherCard library and see if it is possible to change these pin assignments.
EtherCard-1.1.0.zip (124.7 KB)