Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error Failed to set address #4

Closed
BJSingh opened this issue Jul 22, 2016 · 4 comments
Closed

error Failed to set address #4

BJSingh opened this issue Jul 22, 2016 · 4 comments

Comments

@BJSingh
Copy link

BJSingh commented Jul 22, 2016

I tried your library for raspberry pi and ads1115. But when run I get error failed to set address for line wire.setAddress(address); in i2c.coffee file. I have attach code file and error
code file:
codefile

error file:
errorfile

@alphacharlie
Copy link
Owner

alphacharlie commented Jul 22, 2016

OK, This looks to be an i2c issue. A couple Questions -

  1. What hardware are you on? (i.e. which Raspberry pi board)
  2. Is I2C enabled in raspi-config (and are the modules being loaded at boot?)
  3. Does the file /dev/i2c-1 (or /dev/i2c-0 ) exist in your filesystem?

@BJSingh
Copy link
Author

BJSingh commented Jul 23, 2016

I am using Pi3.
i2c was not enabled, I enabled then I got another error.
/dev/i2c-1 is showing in file system after i2c enabled.
error2

@BJSingh
Copy link
Author

BJSingh commented Aug 5, 2016

Hello alphacharlie, issue has been resolved I am getting following output when channel 0 connected to GND.
output

much close value, I will be testing more and will respond you about results.
Thanks,

@alphacharlie
Copy link
Owner

Glad you got it working! I'm now marking this one as closed. ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants