I am trying to avoid using "import as" and use full length class names so I get a better understanding of class structure and who calls what.
import adafruit_ads1x15.ads1115 # works
ads10 = adafruit_ads1x15.ads1115(i2c_1, address=0x48) # NameError: name 'adafruit_ads1x15' is not defined
ads10 = adafruit_ads1x15.ads1115.ADS1115(i2c_1, address=0x48) # NameError: name 'adafruit_ads1x15' is not defined
The example below works fine:
I am trying to avoid using "import as" and use full length class names so I get a better understanding of class structure and who calls what.
Could you please show me the correct syntax?