<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi Matt,<br>thanks I'll go and have a look now.<br>Regards Pete<br><br><div><div id="SkyDrivePlaceholder"></div>&gt; Date: Mon, 30 Jul 2012 19:05:23 -0400<br>&gt; Subject: Re: [C.CC USERS] libraries<br>&gt; From: matt@jadud.com<br>&gt; To: fighne@hotmail.co.uk<br>&gt; CC: users@concurrency.cc<br>&gt; <br>&gt; Hi Pete,<br>&gt; <br>&gt; I have not rolled it into the official distribution, but I have a TWI<br>&gt; library for the AVR.<br>&gt; <br>&gt; https://github.com/jadudm/Paper-ES-Sensor<br>&gt; <br>&gt; I have some code that talks to a 256K EEPROM, which might be instructive:<br>&gt; <br>&gt; https://github.com/jadudm/Paper-ES-Sensor/blob/master/eeprom.24LC256.module<br>&gt; <br>&gt; and, a TWI library. Apparently, I was on my third go-round re: implementation.<br>&gt; <br>&gt; https://github.com/jadudm/Paper-ES-Sensor/blob/master/twi3.module<br>&gt; <br>&gt; If you drop that in a directory with your code, you can write<br>&gt; <br>&gt; #INCLUDE "twi3.module"<br>&gt; <br>&gt; and it will be pulled straight in.<br>&gt; <br>&gt; My library is 1) slow, 2) probably/possibly correct. I have used it to<br>&gt; set and pull time information from the Chronodot[1], so it works well<br>&gt; enough to do that. You can see the usage of the library in<br>&gt; firmware.occ:<br>&gt; <br>&gt; https://github.com/jadudm/Paper-ES-Sensor/blob/master/firmware.occ<br>&gt; <br>&gt; Improvements can be submitted against that GitHub repository, I<br>&gt; suppose, and when everyone stops traveling, we can look at pulling<br>&gt; that directly into the Plumbing codebase. I consider nothing in that<br>&gt; library sacred, and it represents my first real exploration of TWI, so<br>&gt; I wouldn't be surprised if there were better ways of doing things.<br>&gt; Feel free to make suggestions/submit patches/rewrite it as<br>&gt; twi4.occ/etc.<br>&gt; <br>&gt; Feel free to ask questions, and let us know what we can do to help.<br>&gt; <br>&gt; Cheers,<br>&gt; Matt<br>&gt; <br>&gt; On Mon, Jul 30, 2012 at 6:34 PM, peter feeney &lt;fighne@hotmail.co.uk&gt; wrote:<br>&gt; &gt; hi All,<br>&gt; &gt; knowing that there are libraries for I2C in the Processing language are<br>&gt; &gt; there any in Occam?<br>&gt; &gt; As I'm just about to build my own addons which require I2C, One Wire<br>&gt; &gt; communications with other devices(memory, rtc, temp/humidty)<br>&gt; &gt; Regards Pete<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; users mailing list<br>&gt; &gt; users@concurrency.cc<br>&gt; &gt; http://lists.concurrency.cc/mailman/listinfo/users<br>&gt; &gt;<br></div>                                               </div></body>
</html>