Remember that on the Arduino MEGA the SPI interface that is used to talk to the Etherenet board uses pins 50-52. Don't try to use those pins for I/O.
Remember that on the Arduino MEGA the SPI interface that is used to talk to the Etherenet board uses pins 50-52. Don't try to use those pins for I/O.