EasyManuals Logo

Adafruit Industries STEMMA I2C User Manual

Default Icon
19 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #10 background imageLoading...
Page #10 background image
Next you'll need to install the necessary libraries to use the hardware. They can be
downloaded via the Adafruit's CircuitPython library bundle(). Be sure to read the Circ
uitPython Welcome guide() for information on working with and installing libraries.
Before continuing make sure your board's lib folder has:
adafruit_seesaw.mpy
adafruit_bus_device
Nextconnect to the board's serial REPL()so you are at the CircuitPython>>>prompt.
Python Installation of seesaw 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()!
Once that's done, from your command line run the following command:
sudo pip3 install adafruit-circuitpython-seesaw
If your default Python is version 3 you may need to run 'pip' instead. Just make sure
you aren't trying to use CircuitPython on Python 2.x, it isn't supported!
CircuitPython & Python Usage
This example sketch shows connecting to the sensor and reading temperature and
moisture/capacitive measurement
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
import time
import board
from adafruit_seesaw.seesaw import Seesaw
i2c_bus = board.I2C() # uses board.SCL and board.SDA
# i2c_bus = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a
microcontroller
ss = Seesaw(i2c_bus, addr=0x36)
©Adafruit Industries Page 10 of 19

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Adafruit Industries STEMMA I2C and is the answer not in the manual?

Adafruit Industries STEMMA I2C Specifications

General IconGeneral
BrandAdafruit Industries
ModelSTEMMA I2C
CategorySecurity Sensors
LanguageEnglish