Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate SEN66 driver from SEN66 model version 1.3.0 #1

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.0.0] - 2024-11-25

### Added

- Add all public interfaces
### Changed

- Return type of CO2 value in read_measured_values changed from float to uint16
## [0.1.0] - 2024-10-31

### Added
Expand All @@ -13,5 +21,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add interfaces to start, stop and read measurements.
- Add interfaces to read product name, serial number and version

[Unreleased]: https://github.com/Sensirion/raspberry-pi-i2c-sen66/compare/0.1.0...HEAD
[Unreleased]: https://github.com/Sensirion/raspberry-pi-i2c-sen66/compare/1.0.0...HEAD
[1.0.0]: https://github.com/Sensirion/raspberry-pi-i2c-sen66/compare/0.1.0...1.0.0
[0.1.0]: https://github.com/Sensirion/raspberry-pi-i2c-sen66/releases/tag/0.1.0
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ The repository provides a driver for setting up a SEN66 sensor to run on a Raspb
Click [here](https://sensirion.com/sen6x-air-quality-sensor-platform) to learn more about the Sensirion SEN66 sensor.


unknown


The default I²C address of [SEN66](https://www.sensirion.com/products/catalog/SEN6x) is **0x6B**.
The default I²C address of [SEN66](https://www.sensirion.com/products/catalog/SEN66) is **0x6B**.



Expand Down
8 changes: 4 additions & 4 deletions example-usage/sen66_i2c_example_usage.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Generator: sensirion-driver-generator 1.0.1
* Product: sen66
* Model-Version: 1.2.0
* Model-Version: 1.3.0
*/
/*
* Copyright (c) 2024, Sensirion AG
Expand Down Expand Up @@ -84,9 +84,9 @@ int main(void) {
float temperature = 0.0;
float voc_index = 0.0;
float nox_index = 0.0;
float co2 = 0.0;
uint16_t co2 = 0;
uint16_t repetition = 0;
for (repetition = 0; repetition < 50; repetition++) {
for (repetition = 0; repetition < 100; repetition++) {
sensirion_hal_sleep_us(1000000);
error = sen66_read_measured_values(
&mass_concentration_pm1p0, &mass_concentration_pm2p5,
Expand All @@ -104,7 +104,7 @@ int main(void) {
printf("temperature: %.2f ", temperature);
printf("voc_index: %.2f ", voc_index);
printf("nox_index: %.2f ", nox_index);
printf("co2: %.2f\n", co2);
printf("co2: %u\n", co2);
}

error = sen66_stop_measurement();
Expand Down
Binary file modified images/sen6x-pinout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions metadata.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# driver generation metadata
generator_version: 1.0.1
model_version: 1.2.0
model_version: 1.3.0
dg_status: released
is_manually_modified: false
first_generated: '2024-10-30 08:14'
last_generated: '2024-10-30 08:14'
last_generated: '2024-11-27 07:57'
Loading