Hello everyone. I have an Arduino Uno and recently i got an thernet shield ENC28J60 from www.ekitszone.com. My proble is that i cant make it work...
I used this code below:
#include <SPI.h>
#include <Ethernet.h>
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,2,2);
void setup() {
Serial.begin(9600);
// disable SD card if one in the slot
pinMode(4,OUTPUT);
digitalWrite(4,HIGH);
Serial.println("Starting w5100");
Ethernet.begin(mac,ip);
Serial.println(Ethernet.localIP());
}
void loop() {
}
and my result is 0.0.0.0
I can't assign an ip nor with dhcp neither with static. can you help me please?