Skip to main content

Driver for the SCD4X CO2 sensor

Project description

SCD4X C02 Sensor

Build Status Coverage Status PyPi Package Python Versions

Pre-requisites

You must enable:

  • i2c: sudo raspi-config nonint do_i2c 0

You can optionally run sudo raspi-config or the graphical Raspberry Pi Configuration UI to enable interfaces.

Installing

Stable library from PyPi:

  • Just run pip3 install scd4x

In some cases you may need to use sudo or install pip with: sudo apt install python3-pip

Latest/development library from GitHub:

  • git clone https://github.com/pimoroni/scd4x-python
  • cd scd4x-python
  • sudo ./install.sh

0.0.2

  • Fix byte packing when sending data (unsigned char instead of signed char).
  • Fix condition in set_temperature_offset.
  • Fix reading data in get_temperature_offset.
  • Add get/set_automatic_self_calibration_enabled.
  • Add persist_settings.
  • Repackage to latest boilerplate.

0.0.1

  • Initial Release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scd4x-0.0.2.tar.gz (11.0 kB view hashes)

Uploaded Source

Built Distribution

scd4x-0.0.2-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page