function off()
 {
     wiringpi::pinMode(self::DIODE_PIN, 1);
     return wiringpi::digitalWrite(self::DIODE_PIN, 0);
 }
예제 #2
0
<?php

ini_set("enable_dl", "On");
include 'wiringpi.php';
echo wiringpi::digitalRead(1);
 function buzzStop()
 {
     wiringpi::pinMode(self::BUZZER_PIN, 1);
     wiringpi::digitalWrite(self::BUZZER_PIN, 0);
 }