I need some help to understand a feel things on a project I’m working on it.
I have a couple of Duemilenove boards and a couple of Nueletronic’s Ethernet shield, running arduino version 0022 with all needed libraries. I have been able to play with the examples provided but I would like to take the next step.
As a reminder Im have very little experience programming but I have a fair understanding of programming logic, Im just trying to put things in place.
One of Nueletronic examples is a web-based LED control:
This is a great example and show how can you do things “online”.
I would like to make this work with 6 LEDs so I started poking around the code to see how could I adapt to my needs. Turns out I got somewhere but not even close to my ideal.
Here’s My questions and explanations:
I manage to control 5 LED’s using the cmd=# in the code. For some reason I don’t understand “cmd” will only accept single digits variables (1,2,3-9), when I try send the code with cmd=10 it wont work at all (i need that to activate the 6th LED);
I still don’t understand how to build the web page showing all 6 LED with its status and the button to turn on and off. I was poking the code but I just don’t get it, maybe someone could help me find my way.
I am attaching the code with the changes I made.
Thank you all in advance and any help will be welcome.