Go Down

Topic: Problems with Wire.requestFrom (Arduiono Uno v1.0.3) (Read 2 times) previous topic - next topic

Nick Gammon

Hmmm - you are turning the device's power off? No wonder it doesn't respond. :)

There is another version of the Wire library that handles lack of response better. There is a link to it on my I2C page.

irethedo

Thanks Nic-

I just saw your scanner and here is my output

I2C scanner. Scanning ...
Found address: 33 (0x21)
Found address: 34 (0x22)
Found address: 35 (0x23)
Done.
Found 3 device(s).

I will take a llok at your I2C page

thanks

irethedo

Nick-

Please send a link to the Wire library on your site

thanks

Nick Gammon


irethedo

Thanks for the link.

I am attempting to switch my code over to use this I2c.h library but I keep getting an error with the following:

  I2c.begin();   gives me this error:    'I2c' was not declared in this scope

in my code I have included the file included:
#include <I2C.h> and in both the v1.0.3 IDE and v1.0.1  IDE
I have also tried adding I2c.h & I2c.cpp but still I get this error.

This was done after I placed I2C folders (which contain I2c.h & I2c.cpp) into  \my documents\Aduino-1.0.1\libraries
and \my documents\Aduino-1.0.3\libraries folders.

I see an import library option in the sketch pull down menu but the I2c library does not exist in the list nad there does not appear to be a way to browse for it either...

Any ideas what i am missing or doing wrong?

thanks

Go Up