Here I was running under 2.7
ic2detect 1 showed nothing at 0x48
Plugged my ADC (w 0x48 address selected) back in.
i2cdetect 1 showed 0x48 loaded uu (onto kernel)
Ran program simpletest.py in Geany showed 0x48 busy.
Removed ADC board.
i2cdetect 1 showed 0x48 still attached to kernel
pi2@FarmPI:~ $ sudo rmmod ads1015
no error showed it was loaded
pi2@FarmPI:~ $ sudo rmmod ads1115
rmmod: ERROR: Module ads1115 is not currently loaded
I am not importing ads1015
simpletest.py under 3.7
imports
import adafruit_ads1x15.ads1115 as ADS
Create an ADS1115 ADC (16-bit) instance.
adc = Adafruit_ADS1x15.ADS1115(address=0x48, busnum=1)
pi2@FarmPI:~ $ i2cdetect 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1.
I will probe address range 0x03-0x77.
Continue? [Y/n] Y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --
simpletest.py failed
Relogged on but in 3.7
pi3@FarmPI:~ $ sudo rmmod ads1015
pi3@FarmPI:~ $ sudo rmmod ads1115
rmmod: ERROR: Module ads1115 is not currently loaded
pi3@FarmPI:~ $ i2cdetect 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1.
I will probe address range 0x03-0x77.
Continue? [Y/n] Y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- 48 – -- – -- – -- –
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --
pi3@FarmPI:~ $ i2cdetect 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1.
I will probe address range 0x03-0x77.
Continue? [Y/n] Y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- 48 – -- – -- – -- –
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --
pi3@FarmPI:~ $
Now with
sudo rmmod ads1015
i2cdetect 1 shows 48 not uu indicating not attached to kernel.
Now when I run simpletest.py under 3.7 it returns values from ADC board.
Strange indeed