dio_out()


Output a signal to given port.

Description

void dio_out(int $pin, int $type)

Parameters

Return Value

none

Example

<?php
include "/lib/sd_204.php";
dio_out(DO_0, HIGH);  // Output HIGH to DO 0 port
sleep(1);
dio_out(DO_0, LOW);   // Output LOW to DO 0 port
?>

See also