spc_scan()


Scan smart expansion boards connected

Description

int spc_scan(int $start = 1, int $end = 14, bool $verbose = false)

Parameters

Return Value

the number of smart expansion boards detected

Example

<?php
include "/lib/sd_spc.php";
$count = 0;
spc_reset();
spc_sync_baud();
$count = spc_scan(1, 14, true);
echo "$count smart expansion baord(s) has(have) been detected!\r\n";
?>

See also