This repository contains the Python driver to communicate with a Sensirion SPS30 sensor over UART using the SHDLC protocol.
Click here to learn more about the Sensirion SPS30 sensor.
You can connect your sensor over the provided USB cable. For special setups check out the sensor pinout in the section below.
Sensor pinout
Pin | Cable Color | Name | Description | Comments |
---|---|---|---|---|
1 | red | VDD | Supply Voltage | 5V |
2 | green | RX | UART: Transmission pin for communication | |
3 | yellow | TX | UART: Receiving pin for communication | |
4 | SEL | Interface select | Leave floating to select SHDLC | |
5 | black | GND | Ground |
See the documentation page for an API description and a quickstart example.
The coding style can be checked with flake8
:
pip install -e .[test] # Install requirements
flake8 # Run style check
In addition, we check the formatting of files with
editorconfig-checker
:
pip install editorconfig-checker==2.0.3 # Install requirements
editorconfig-checker # Run check
See LICENSE.