in reply to Casting magic - how to write numbers to the serial port
Try
$x = 25; while ($x>0) { sleep(1); $ob->write("\xFE\x90\xFF\x00" . chr( $x * 10 ) ); $ob->write_drain; $x--; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Casting magic - how to write numbers to the serial port
by ehud42 (Initiate) on Jan 13, 2010 at 02:27 UTC |