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