LED's controll by Web

I made a simple web page to turn on LEDs and show their status: “On” or “Off” but reading the current LED states is never done correctly the first time I start. For example, when the arduino is turned on, the LEDs are physically erased, but displays the message that only the green LED is off and the other fields are blank.

Any help is welcome!

Follow Sketch

sketch_eth_ascende_led.ino (3.91 KB)

Está aqui no Fórum Inglês. Por favor, deixe a sua discussão em fórum movimento português se você deseja obter respostas. (Google Translation)