led_in()


返还指定LED端口的状态

Description

void led_in(int $pin)

Parameters

Return Value

HIGH时返还1, LOW时返还0

Example

<?php
include "/lib/sd_101.php";
led_setup(LED_A, "in");   // Setting the LED_A to input
$state = led_in(LED_A);   // Reading the LED_A
?>

See also