dio_in()


Reading the designated port value

Description

int dio_in(int $pin)

Parameters

Retern Values

state is HIGH, 0 when the port state is LOW

Example

<?php
include "/lib/sd_204.php";
echo dio_in(DI_0), "\r\n";   // Reading the port 0 of the DI
echo dio_in(DI_1), "\r\n";   // Reading the port 1 of the DI
?>

See also