User Manual
Python Computer Wiring
Since there's
dozens
of Linux computers/boards you can use we will show wiring for Raspberry Pi. For other platforms,
please visit the guide for CircuitPython on Linux to see whether your platform is supported (https://adafru.it/BSN).
Here's the Raspberry Pi wired with I2C:
Pi 3V3 to sensor VIN
Pi GND to sensor GND
Pi SCL to sensor SCK
Pi SDA to sensor SDI
CircuitPython Installation of LPS35HW Library
Next you'll need to install the Adafruit CircuitPython LPS35HW (https://adafru.it/ERZ) library on your CircuitPython
board.
First make sure you are running the latest version of Adafruit CircuitPython (https://adafru.it/Amd) for your board.
Next you'll need to install the necessary libraries to use the hardware--carefully follow the steps to find and install these
libraries from Adafruit's CircuitPython library bundle (https://adafru.it/zdx). Our introduction guide has a great page on
how to install the library bundle (https://adafru.it/ABU) for both express and non-express boards.
Remember for non-express boards like the, you'll need to manually install the necessary libraries from the bundle:
adafruit_lps35hw.mpy
adafruit_bus_device
adafruit_register
You can also download the adafruit_lps35hw.mpy from its releases page on Github (https://adafru.it/ER-).
Before continuing make sure your board's lib folder or root filesystem has
the adafruit_lps35hw.mpy, adafruit_bus_device, and adafruit_register files and folders copied over.
Next connect to the board's serial REPL (https://adafru.it/Awz) so you are at the CircuitPython >>> prompt.
Python Installation of LPS35HW Library
You'll need to install the Adafruit_Blinka library that provides the CircuitPython support in Python. This may also
require enabling I2C on your platform and verifying you are running Python 3. Since each platform is a little different,
and Linux changes often, please visit the CircuitPython on Linux guide to get your computer
ready (https://adafru.it/BSN)!
Once that's done, from your command line run the following command:
sudo pip3 install adafruit-circuitpython-lps35hw
If your default Python is version 3 you may need to run 'pip' instead. Just make sure you aren't trying to use
© Adafruit Industries https://learn.adafruit.com/lps35hw-water-resistant-pressure-sensor Page 22 of 28