setMapper( new WiringPiMapper(2) ); $par = new BitmappedGpio(); for($n = 0; $n < 7; $n++) { $par->setGpioPin($n,$gpio[$n]); } for($n = 0; $n < 10; $n++) { $par->write(0xFF); usleep(500000); $par->write(0x00); usleep(500000); }