Adafruit LPS22 Shield

Overview

The Adafruit LPS22 Pressure Sensor Shield features a ST Microelectronics LPS22HB Pressure Sensor and two STEMMA QT connectors. It measures air pressure and temperature.

Adafruit LPS22 Shield

Adafruit LPS22 Shield (Credit: Adafruit)

Requirements

This shield can be used with boards which provide an I2C connector, for example STEMMA QT or Qwiic connectors. The target board must define a zephyr_i2c node label. See Shields for more details.

Pin Assignments

Shield Pin

Function

SCK

LPS22 I2C SCL

SDI

LPS22 I2C SDA

SDO

LPS22 I2C address adjust

CS

LPS22 mode. Pulled high to use I2C.

INT

LPS22 interrupt out

See st,lps22hb-press for documentation on how to adjust the devicetree file.

Programming

Set --shield adafruit_lps22 when you invoke west build. For example when running the Barometric pressure and temperature sensor polling example pressure and temperature sample:

# From the root of the zephyr repository
west build -b adafruit_feather_rp2040 --shield adafruit_lps22 samples/sensor/pressure_polling
west flash