Hi:
I spent the weekend trying to get I2C working between my Arduino 011
and a Dallas DS1337 RTC chip.
In searching for examples, I came across a few, but none that would work for the RTC.
Is there any detailed information anywhere that explains what is handled by Wire.h ?
I found the Wiring site, but no information on how it integrates with Arduino. Trying to use the IDE from Wiring returned an error from my Arduino saying that it couldn't connect properly with Wiring
I also found the CRAL libraries which appear to have exactly what I am looking for, but again; no documentation on how to set things up. I added includes to cover each of the code files that needed to be available, but that just left me needing an example that shows what the RTC needs.
I downloaded the C test/prototype code from the Dallas site and spent last night converting it to Arduino code. I had no problem getting the SDA and SCL signals going with digitalWrite (HIGH / LOW) as need abd /I could get the code to compile. It functions by setting paramaters from a menu using scanf to read the input. I tried pre-populathing the choices that I would have selected, but without being able to use scanf or something similar I am now stuck.
Is there any way to read the PC keyboard input through the Arduino code?
I have managed to get I2C working in a PICAXE environment in the past, but it was done through using code to toggle all the SDA an SCL signals and SHIFTing the data in and out.
From what I read, all of the interfacing is done in Wire.h, so I really need to know what is being handled there so that I don't work against myself.
All comments / observations welcome
thanks
TimVukman