I'm having trouble compiling the python from an example in the library.
https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/blob/master/Adafruit_ADS1x15/ads1x15_ex_singleended.py
I basically just cloned the entire repo, navigated to the example and then tried to run it as sudo
:
sudo python ./ads1x15_ex_singleended.py
Here is the stack trace:
Traceback (most recent call last):
File "ads1x15_ex_singleended.py", line 35, in <module>
adc = ADS1x15(ic=ADS1115)
File "/home/mename/Developer/AutomatedSmokingMachine/Adafruit-Raspberry-Pi-Python-Code/Adafruit_ADS1x15/Adafruit_ADS1x15.py", line 138, in __init__
self.i2c = Adafruit_I2C(address)
File "/home/mename/Developer/AutomatedSmokingMachine/Adafruit-Raspberry-Pi-Python-Code/Adafruit_ADS1x15/Adafruit_I2C.py", line 36, in __init__
busnum if busnum >= 0 else Adafruit_I2C.getPiI2CBusNumber())
IOError: [Errno 2] No such file or directory