Hello
I'm using Seeeduino Stalker v2 and have recently switched to Arduino 1.0 but now I'm unable to read out my I2C RTC RX8025.
Using the "Wire->Master_reader" example I have a basic version which works for 0.23 but not voor 1.0:
#include <Wire.h>
void setup()
{
Wire.begin(); // join i2c bus (address optional for master)
Serial.begin(9600); // start serial for output
}
void loop()
{
Wire.requestFrom(0x32, 8 ); // request 6 bytes from slave device #2
while(Wire.available()) // slave may send less than requested
{
#if ARDUINO >= 100
char c = Wire.read();
#else
char c = Wire.receive(); // receive a byte as character
#endif
Serial.print(c, HEX); // print the character
}
Serial.println("");
delay(500);
}
On the other hand, the
I2C tmp102 temperature sensor still works!Greetings
Joris