controolling leds through php

/*
Script by Lassie Marlowe Digital
by Paddy O’Sullivan
*/

// Assign each of our input pins to an integer variable
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

new.php.txt (4.02 KB)

but i add more led in this projects to if( COM_value == 10 ) if( COM_value == 11 ) if( COM_value == 12 )

add all sequance to 10 read as blink 1 led or 11 read to 1 com value 1 is read and 1st led are blink and com Value 12 read to led 1 or 2 both blink

final qestion my is how to add more COM Values add in row 8 after 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25 end ???? how to ????

Same as other post