problema arduino 2009+ sheda ethenet + 1 led

Buongiorno sto giocando con arduino avvicinandomi al mondo dell' elettronica e programmazione
In breve ho scaricato questo sorgente l'ho compilato e l'ho mandato in esecuzione fin li tutto bene
All uscita n12 ho conesso un led ma questo rimane acceso con un intensita molto bassa.
levando il led e inserendo il tester noto che a valore off la tenzione è di 1,5 a valore on la tensione è di 3 volt scarsi. Ho provato a cambiare anche l'alimentatore di arduino è ho connesso un 5 volt 2amper ma non cambiato nulla ...in che sto sbagliando??
in breve vorrei un programma semplice che con webserver mi faccia accendere o spegnere un led grazie e ringrazio anticipatamente

allego sorgente

#include <SPI.h>
#include <Ethernet.h>
#include <Servo.h> 
int led = 12;
Servo microservo; 
int pos = 0; 
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };   //physical mac address
byte ip[] = { 192, 168, 1, 178 };                      // ip in lan (that's what you need to use in your browser. ("192.168.1.178")
byte gateway[] = { 192, 168, 1, 1 };                   // internet access via router
byte subnet[] = { 255, 255, 255, 0 };                  //subnet mask
EthernetServer server(80);                             //server port     
String readString;

void setup() {
// Open serial communications and wait for port to open:
 Serial.begin(9600);
  while (!Serial) {
   ; // wait for serial port to connect. Needed for Leonardo only
 }
 pinMode(led, OUTPUT);
 microservo.attach(7);
 // start the Ethernet connection and the server:
 Ethernet.begin(mac, ip, gateway, subnet);
 server.begin();
 Serial.print("server is at ");
 Serial.println(Ethernet.localIP());
}


void loop() {
 // Create a client connection
 EthernetClient client = server.available();
 if (client) {
   while (client.connected()) {   
     if (client.available()) {
       char c = client.read();
    
       //read char by char HTTP request
       if (readString.length() < 100) {
         //store characters to string
         readString += c;
         //Serial.print(c);
        }

        //if HTTP request has ended
        if (c == '\n') {          
          Serial.println(readString); //print to serial monitor for debuging
    
          client.println("HTTP/1.1 200 OK"); //send new page
          client.println("Content-Type: text/html");
          client.println();     
          client.println("<HTML>");
          client.println("<HEAD>");
          client.println("<meta name='apple-mobile-web-app-capable' content='yes' />");
          client.println("<meta name='apple-mobile-web-app-status-bar-style' content='black-translucent' />");
          client.println("<link rel='stylesheet' type='text/css' href='http://randomnerdtutorials.com/ethernetcss.css' />");
          client.println("<TITLE>Random Nerd Tutorials Project</TITLE>");
          client.println("</HEAD>");
          client.println("<BODY>");
          client.println("<H1>Random Nerd Tutorials Project</H1>");
          client.println("<hr />");
          client.println("
");  
          client.println("<H2>Arduino with Ethernet Shield</H2>");
          client.println("
");  
          client.println("<a href=\"/?button1on\"\">Turn On LED</a>");
          client.println("<a href=\"/?button1off\"\">Turn Off LED</a>
");   
          client.println("
");     
          client.println("
"); 
   
          client.println("
"); 
          client.println("</BODY>");
          client.println("</HTML>");
    
          delay(1);
          //stopping client
          client.stop();
          //controls the Arduino if you press the buttons
          if (readString.indexOf("GET /?button1on HTTP/1.1") >0){

              digitalWrite(led, HIGH);
          }
          if (readString.indexOf("GET /?button1off HTTP/1.1") >0){

              digitalWrite(led, LOW);
         
          
          }
           //clearing string for next read
           readString="";  
          
        }
      }
   }
}
}

i pin 10-11-12-13 sono usati dalla Ethernet, quindi il Led collegalo su un'altro pin

scusa l'ignoranza quindi l'errore è usare 10.11.12.13 perche usati da scheda ethernet se metto pin4 tutto funzina dici?? grazie intanto

E metti anche una resistenza in serie al LED.
Ciao Uwe

uwefed:
E metti anche una resistenza in serie al LED.
Ciao Uwe

@Joblele: metti SEMPRE una resistenza in serie al LED. Meglio evidenziarlo per bene ;D

Consiglio anche l'uso della funzione F() per risparmiare RAM.

grazie a tutti