export(0); $pin->setInterrupt("rising", function() { echo "Interrupt on GPIO0\n"; }); while(true) { // We need to call this for our interrupt status to be polled $gpio->update(); usleep(10000); }