dio_out()


指定LED端口上输出指定逻辑。

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