Go to advanced search

by rvbglas
Wed Apr 12, 2017 10:08 pm
Forum: C/C++
Topic: ADS1115 Problem with C Code
Replies: 7
Views: 10606

Re: ADS1115 Problem with C Code

Just give ADS some time to react to write and clear "ready" bit (or you just read previous result, maybe different pin, yes). C code is way faster than Python or shell. if (write(fd, buf, 3) != 3) { perror("Write to register 1"); exit(-1); } usleep(10000); ////////////////////////////// // wait for ...

Go to advanced search