uio_out()


Outputs HIGH or LOW sigrnal to the output port

Description

void uio_out(int $uio_id, int $pin, int $type)

Parameters

Example

<?php
include "/lib/sd_340.php";
uio_setup(0, 0, "out");  // configuring pin 0 of the UIO 0 to output port
uio_out(0, 0, HIGH);     // outputs HIGH to pin 0 of the UIO 0
sleep(1);
uio_out(0, 0, LOW);      // outputs LOW to pin 0 of the UIO 0
?>

See also