Hello Guys,
I am using the Ethernet Switching Code V4.06 from http://www.instructables.com/id/Ethernet-Switching-with-Arduino/3/
I tryed to use more than 10 Outputs but I got an Error: error: duplicate case value.
switch (c) {
case '0':
//add code here to trigger on 0
triggerPin(outputAddress[0], client, outp);
break;
case '1':
//add code here to trigger on 1
triggerPin(outputAddress[1], client, outp);
break;
case '2':
//add code here to trigger on 2
triggerPin(outputAddress[2], client, outp);
break;
case '3':
//add code here to trigger on 3
triggerPin(outputAddress[3], client, outp);
break;
case '4':
//add code here to trigger on 4
triggerPin(outputAddress[4], client, outp);
break;
case '5':
//add code here to trigger on 5
triggerPin(outputAddress[5], client, outp);
//printHtml(client);
break;
case '6':
//add code here to trigger on 6
triggerPin(outputAddress[6], client, outp);
break;
case '7':
//add code here to trigger on 7
triggerPin(outputAddress[7], client, outp);
break;
case '8':
//add code here to trigger on 8
triggerPin(outputAddress[8], client, outp);
break;
case '9':
//add code here to trigger on 9
triggerPin(outputAddress[9], client, outp);
break;
case '10':
//add code here to trigger on 10
triggerPin(outputAddress[10], client, outp);
break;
case '11':
//add code here to trigger on 11
triggerPin(outputAddress[11], client, outp);
break;
} //end of switch case
...
How can I fix that? I also tryed with "if" but then I can use 0 - 9 but 10+ won't work and I don't know why.
You got an idea?
Thanks in Advance
JulHa