<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Crikey, that's really cool... didn't know that.  Will definitely have to take advantage of it.</div><div><br></div><div>Cheers</div><div>Evan</div><br><div><div>On 3 Mar 2011, at 21:17, Kassen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Dave;<br><br>It's reading from the serial port and sending messages on to xmpp<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

(jabber) which you can strip out.<br>
<br>
It's basically just:<br>
<br>
(define serial (open-input-file "/dev/tty.usbserial-A9007Lgy"))<br>
<br>
Which you need to point at the serial device you can find in the<br>
processing ide, and reading it with:<br>
<br>
(read-line serial)<br><br></blockquote><div><br>Very nice! In retrospect I shouldn't be especially happy about this as it's more or less obvious that we can, from a Unix perspective where all things are really files, but this is cool. This quite likely needs a note in the manual.<br>
<br>Yours,<br>Kas. <br></div></div>
</blockquote></div><br></body></html>