Настройка назначенного UIO pin
void uio_setup(int $uio_id, int $pin, string $mode)
<?php
include "/lib/sd_340.php";
uio_setup(0, 0, "out"); // configuring pin 0 of the UIO 0 to output port
uio_setup(0, 1, "out_pp"); // configuring pin 1 of the UIO 0 to push-pull output port
uio_setup(0, 2, "in"); // configuring pin 2 of the UIO 0 to input port
uio_setup(0, 3, "in_pu"); // configuring pin 3 of the UIO 0 to input with pull-up
?>