Driver for the SCD4X CO2 sensor
Project description
SCD4X C02 Sensor
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
Release history Release notifications | RSS feed
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 details)
Built Distribution
scd4x-0.0.2-py3-none-any.whl
(6.7 kB
view details)
File details
Details for the file scd4x-0.0.2.tar.gz
.
File metadata
- Download URL: scd4x-0.0.2.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d268059c4d240f980ebbb286077fa5dffa1555363b9918a0d7d57531efa9182 |
|
MD5 | c3192c106aec0a9023af3724fb1556a9 |
|
BLAKE2b-256 | ef379f586d32b59e103bb0f12530c08b2e6d36d75fa18a5345fb326f4ffbe191 |
File details
Details for the file scd4x-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: scd4x-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc26a3b94f4f2f05a3d0b94e64d44ef4bbc6bdeb185ff021f32f7709ae5a3e7b |
|
MD5 | 5277ff5cf50b54b37fa0ae0c19185c0d |
|
BLAKE2b-256 | e3265f326365500c9619d8f759b7ea7949647332fa9ff1db6d548876a7fe999a |