function GPIO_init() { $r = wiringPiSetup(); if ($r < 0) { die("Failed to open GPIO. Are you running as root?\n"); } return $r; }
static function wiringPiSetup() { return wiringPiSetup(); }