Hello, everybody. I'm desperately trying to figure out how to communicate with a slave I2C (or SPI) chip using TinyOS-1.1, MicaZ. I have had exactly no luck getting the I2C to work, and am unsure how to implement the SPI hardware (e.g., which pins on the MDA100 to use), or if it's even possible.
The code I wrote has made it to where when the mote should be communicating, the clock signal is low and when it's not, it's high, but it does not actually clock any data. I have seen times when the data line is high, and times when it's low, so I'm certain it's not a miswiring in the hardware. What I need is some sample code for sending and receiving data over the I2C bus (or SPI...either's fine). If anybody can point me in the right direction, I would *really* appreciate it. I've found that the best way I learn TOS is by example, but I've been unable to track anything down on my own thus far. Thanks, Greg Turnipseed _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
