And i found an example code from viewtopic.php?t=36250&p=305270
Code: Select all
#include <ads1115.h>
#define MY_BASE 2222 //pinBase
...
ads1115Setup (MY_BASE, 0x48) ;
int ch0 = analogRead (MY_BASE + 0) ;
int ch3 = analogRead (MY_BASE + 3) ;
// and so onI'm not sure if i'm doing it right .
----------------------------------------------------------------------------------------------------------------------------------------
There are few questions i want to figure out :
Even thougth gordan has explained in viewtopic.php?t=189280 a mcp12s17 case
-> The pinBase is the new pin number of the first pin of the device - any number >= 64 that you like.
1.How should I define the pinBase properly for ads1115?
Does it mean I can set pinBase to any number >=64 in ads1115 too?
2. how do i set analogRead to single-end or diffirential mode ?
Please help me find out if i missed something.