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