> After I add the 4.7Kohm external pull up resistors on the SCL and SDA lines, I > would like to use the AVR Butterfly (US$19.95, temperature sensor, same
> external flash as the Mica2, sounder, 5-way joystick, light sensor, and a 6
> position scrollable alpha-numeric LCD display) as a user interface for my
> Mica2's. I can write the slave I2C routines for the ATmega169 in regular
> avr-gcc, but haven't been able to find any TinyOS examples of Mica's using I2C
> in the master mode to talk with other uP enabled devices.


There's a new, beta version of the I2C stuff in tinyos-1.x/beta/I2C on sourceforge, which does both master and slave using the ATmega128 hardware I2C support (define HARDWARE_I2C when compiling). Note that the regular TinyOS distribution does include I2CC and I2CPacketC components for master use (though they cheat and do active pullup for the high level), but these will be replaced by those in beta/I2C in the not-too-distant future.

There's also a port of TinyOS to the butterfly in broken/experimental/owl/butterfly (including master and slave I2C support), along with a bunch of test programs.

David Gay
[EMAIL PROTECTED]
PS: I don't read tinyos-users. Email me directly if you have questions.

_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to