Line 27:
Line 27:
[https://github.com/adafruit/Adafruit_Python_MPR121 Adafruit Python library]
[https://github.com/adafruit/Adafruit_Python_MPR121 Adafruit Python library]
−
===Patch for I2===
+
===Enable I2C===
+
+
Be sure to enable i2c!
+
+
raspberry menu -> Preferences -> Raspberry Pi Configuration -> Interfaces => enable I2C
+
+
see [https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c Configuring I2C]
+
+
===Patch for I2C===
"the latest Raspbian Jessie and Stretch releases have an updated I2C driver that isn't compatible with how this library enables repeated I2C start bits.
"the latest Raspbian Jessie and Stretch releases have an updated I2C driver that isn't compatible with how this library enables repeated I2C start bits.
Line 38:
Line 46:
sudo apt-get update
sudo apt-get update
sudo apt-get install build-essential python-dev python-smbus python-pip git
sudo apt-get install build-essential python-dev python-smbus python-pip git
+
+
===Install Python MPR121 Library===
+
+
cd ~
+
git clone https://github.com/adafruit/Adafruit_Python_MPR121.git
+
+
===Run Test Software===
+
+
cd Adafruit_Python_MPR121
+
sudo python setup.py install