When I am using the I2C program I need it to pause between its own
internal function calls. The problem is that they all occur very close
together and current the sensor I am using seems to error under that
condition, the sensor is a gyration MG1101. So I just want to space the
internal function calls slightly so that it is not as fast and maybe
then my sensor will operate correctly. So to sum up I want the internal
parts of I2C to wait between calls not the program as a whole.
> Hi Jonathan,
> On 4/16/06, Jonathan Stewart <aggie.stewart@...> wrote:
>> > I want to add a wait to the I2C program so that when it calls its
>> > subroutines there is sometime between them. i.e. a wait statement
>> > similar to one found on the EB63, wait(int). Where the programs waits
>> > 20ms before continuing.
> You can call usleep to delay. It isn't clear to me from your
> description exactly where you want the delay.
> Are you talking about calling the i2c program from within a bash
> script? and wanting to delay between calls to the i2c program? Or are
> you referring to using the i2c function calls from within a C program?
> Or are you really just asking how to delay? Which doesn't really have
> anything to do with i2c at all.
> Dave Hylands
> Vancouver, BC, Canada