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