how to use all 13 pinMode Use and on or off via php thrue

int LED_one = 13; int LED_two = 12; int LED_three = 11; int LED_four = 10;

void setup() { Serial.begin( 9600 );

pinMode( LED_one, OUTPUT ); pinMode( LED_two, OUTPUT ); pinMode( LED_three, OUTPUT ); pinMode( LED_four, OUTPUT );

} //END OF SETUP

void loop() { //wait until the serial connection is open while (Serial.available() == 0);

//read from the serial connection; the - '0' is to cast the values as the int and not the ASCII code int COM_value = Serial.read() - '0';

//print to the console for testing Serial.println(COM_value);

//LED #`1 if( COM_value == 1 ) { digitalWrite( LED_one, HIGH ); // HIGH VOLTAGE - TURNED ON } if( COM_value == 2 ) { digitalWrite( LED_one, LOW ); // LOW VOLTAGE - TURNED OFF }

//LED #2 if( COM_value == 3 ) { digitalWrite( LED_two, HIGH ); // HIGH VOLTAGE - TURNED ON } if( COM_value == 4 ) { digitalWrite( LED_two, LOW ); // LOW VOLTAGE - TURNED OFF }

//LED #3 if( COM_value == 5 ) { digitalWrite( LED_three, HIGH ); // HIGH VOLTAGE - TURNED ON } if( COM_value == 6 ) { digitalWrite( LED_three, LOW ); // LOW VOLTAGE - TURNED OFF }

//LED #4 if( COM_value == 7 ) { digitalWrite( LED_four, HIGH ); // HIGH VOLTAGE - TURNED ON } if( COM_value == 8 ) { digitalWrite( LED_four, LOW ); // LOW VOLTAGE - TURNED OFF }

} //END OF LOOP

My Qestion Is COM_value == 8 but when i codeing extends to use COM_values 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25

This Are not work and when i press in my php button 10 values pass to 1st led was blink and COM_values 11 or 12 or 13 etc. to read and 11 is read 1st led and 12 is read 1or2 both ????

any one solve this proble ??

thanks

+91 9824594156

This thread will show how to receive multiple byte data.