-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Sensirion/scd4x_2.0_20250129_1204
Generate SCD4x driver from SCD4x model version 2.0
- Loading branch information
Showing
33 changed files
with
2,046 additions
and
1,010 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
name: Quality check | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
driver-quality: | ||
uses: sensirion/.github/.github/workflows/driver.c.check.yml@main | ||
with: | ||
examples: '["."]' | ||
run-environment: "ubuntu-20.04" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/scd4x_i2c_example_usage | ||
.idea | ||
/example-usage/scd4x_i2c_example_usage | ||
/tests/scd4x_test_hw_i2c | ||
/tests/scd4x_test_sw_i2c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,22 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
# CHANGELOG | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [0.2.1] - 2021-04-30 | ||
|
||
### Changed | ||
|
||
* Increase timing for single shot from 1350ms to 5000ms | ||
* Increase timing for self test from 5500ms to 10000ms | ||
|
||
|
||
## [0.2.0] - 2021-03-01 | ||
## [1.0.0] - 2025-1-30 | ||
|
||
### Added | ||
- Convenience interfaces taking care of unit conversion to and from ticks. | ||
|
||
### Fixed | ||
- wake-up interface handles missing ACK from sensor on wake up. | ||
|
||
- All commands according to data sheet | ||
## [0.1.0] - 2021-2-1 | ||
|
||
## [0.1.0] - 2021-01-28 | ||
### Added | ||
|
||
Initial release | ||
- Initial version | ||
- Check latest 0.x.x version for changelog prior to version 1.0.0 | ||
|
||
[0.2.1]: https://github.com/Sensirion/embedded-i2c-scd4x/compare/0.2.0...0.2.1 | ||
[0.2.0]: https://github.com/Sensirion/embedded-i2c-scd4x/compare/0.1.0...0.2.0 | ||
[0.1.0]: https://github.com/Sensirion/embedded-i2c-scd4x/releases/tag/0.1.0 | ||
[Unreleased]: https://github.com/Sensirion/embedded-i2c-scd4x/compare/1.0.0...HEAD | ||
[1.0.0]: https://github.com/Sensirion/embedded-i2c-scd4x/compare/0.1.0...1.0.0 | ||
[0.1.0]: https://github.com/Sensirion/embedded-i2c-scd4x/releases/tag/0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
src_dir = .. | ||
common_sources = ${src_dir}/sensirion_config.h ${src_dir}/sensirion_common.h ${src_dir}/sensirion_common.c | ||
i2c_sources = ${src_dir}/sensirion_i2c_hal.h ${src_dir}/sensirion_i2c.h ${src_dir}/sensirion_i2c.c | ||
driver_sources = ${src_dir}/scd4x_i2c.h ${src_dir}/scd4x_i2c.c | ||
|
||
i2c_implementation ?= ${src_dir}/sensirion_i2c_hal.c | ||
|
||
CFLAGS = -Os -Wall -fstrict-aliasing -Wstrict-aliasing=1 -Wsign-conversion -fPIC -I${src_dir} -I. | ||
|
||
ifdef CI | ||
CFLAGS += -Werror | ||
endif | ||
|
||
.PHONY: all clean | ||
|
||
all: scd4x_i2c_example_usage | ||
|
||
scd4x_i2c_example_usage: clean | ||
$(CC) $(CFLAGS) -o $@ ${driver_sources} ${i2c_sources} \ | ||
${i2c_implementation} ${common_sources} scd4x_i2c_example_usage.c | ||
|
||
clean: | ||
$(RM) scd4x_i2c_example_usage |
Oops, something went wrong.