Hey. Thanks for your reply! But no reason to be so impolite...
See I went away over the weekend and didn't have the code with me. I also tought it'd rather be a hardware problem. But anyway here's the code:
#include <SPI.h>
#include <Ethernet.h>
// Enter a MAC address for your controller below.
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
byte mac[] = {
0xBC, 0xAE, 0xC5, 0x39, 0x79, 0x45 };
byte ip[] = {
192, 168, 178, 42 };
// Initialize the Ethernet client library
// with the IP address and port of the server
// that you want to connect to (port 80 is default for HTTP):
EthernetClient client;
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600);
// this check is only needed on the Leonardo:
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
// this is the pin that resets the FEZ Connect shield
// pin 7 is !(rst)
pinMode(7,OUTPUT);
digitalWrite(7,LOW);
delay(10);
digitalWrite(7,HIGH);
// start the Ethernet connection:
Ethernet.begin(mac,ip);
delay(2000);
Serial.println("My IP address: ");
while(true){
for (byte thisByte = 0; thisByte < 4; thisByte++) {
Serial.print(Ethernet.localIP()[thisByte], DEC);
Serial.print(".");
}
delay(2000);
Serial.println();}
}
void loop() { }
I just ran that code again. What now would happen is the following output:
My IP address:
0.255.255.255.
255.255.255.255.
255.255.255.255.
255.255.255.255.
255.255.255.255.