Skip to content

Commit 51ed67f

Browse files
committed
0.3.9 Cozir
1 parent bb44517 commit 51ed67f

File tree

28 files changed

+126
-19
lines changed

28 files changed

+126
-19
lines changed

libraries/Cozir/.github/workflows/arduino-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ jobs:
66
runs-on: ubuntu-latest
77
timeout-minutes: 5
88
steps:
9-
- uses: actions/checkout@v4
10-
- uses: arduino/arduino-lint-action@v1
9+
- uses: actions/checkout@v5
10+
- uses: arduino/arduino-lint-action@v2
1111
with:
1212
library-manager: update
1313
compliance: strict

libraries/Cozir/.github/workflows/arduino_test_runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
timeout-minutes: 20
99

1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v5
1212
- uses: ruby/setup-ruby@v1
1313
with:
1414
ruby-version: 2.6

libraries/Cozir/.github/workflows/jsoncheck.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ on:
55
paths:
66
- '**.json'
77
pull_request:
8+
paths:
9+
- '**.json'
810

911
jobs:
1012
test:
1113
runs-on: ubuntu-latest
1214
timeout-minutes: 5
1315
steps:
14-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1517
- name: json-syntax-check
1618
uses: limitusus/json-syntax-check@v2
1719
with:

libraries/Cozir/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2024 Rob Tillaart
3+
Copyright (c) 2012-2025 Rob Tillaart
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

libraries/Cozir/README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ Arduino library for COZIR range CO2 sensors.
1616

1717
## Description
1818

19-
The COZIR library is **experimental** as not all functionality is tested.
19+
**Experimental**
20+
21+
The COZIR library is experimental as not all functionality is tested.
2022
The polling mode as used in the examples is tested in the past by DirtGambit.
2123
**CO2meter.com** sponsored a **COZIR GC0034** to start hands on testing (2022-02).
2224
This sensor does not support all commands, but as the pattern of the commands
@@ -31,7 +33,7 @@ See COZIRParser below.
3133
The COZIR class is focussed on polling and sending commands.
3234

3335

34-
#### Notes
36+
### Notes
3537

3638
- Read the datasheet before using this library.
3739
It helps to understand the working of the COZIR sensor.
@@ -44,7 +46,7 @@ It needs to be set to **CZR_POLLING** mode.
4446
- Not all COZIR devices support all calls of this library.
4547

4648

47-
#### Related
49+
### Related
4850

4951
- https://emariete.com/en/sensor-co2-mh-z19b/
5052
- https://emariete.com/en/sensor-co2-low-consumption-mh-z1311a-winsen/
@@ -242,9 +244,10 @@ See examples.
242244

243245
#### Must
244246

247+
- improve documentation
248+
245249
#### Should
246250

247-
- improve documentation
248251
- COZIR Parser
249252
- separate readme.md
250253
- separate .h and .cpp
@@ -276,7 +279,7 @@ Class to parse the output of a COZIR sensor in stream mode.
276279

277280
## Description
278281

279-
(added in 0.3.4, experimental)
282+
**Experimental** (added in 0.3.4)
280283

281284
The COZIRparser object has a main function called **nextChar(c)**
282285
It needs to be called with all incoming characters from the sensor.

libraries/Cozir/changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88

9+
## [0.3.9] - 2025-11-25
10+
- update GitHub actions
11+
- update examples
12+
- minor edits
13+
914
## [0.3.8] - 2024-04-11
1015
- update GitHub actions
1116
- minor edits

libraries/Cozir/cozir.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// FILE: Cozir.cpp
33
// AUTHOR: DirtGambit & Rob Tillaart
4-
// VERSION: 0.3.8
4+
// VERSION: 0.3.9
55
// PURPOSE: library for COZIR range of sensors for Arduino
66
// Polling Mode + stream parser
77
// URL: https://github.com/RobTillaart/Cozir

libraries/Cozir/cozir.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
//
33
// FILE: Cozir.h
4-
// VERSION: 0.3.8
4+
// VERSION: 0.3.9
55
// PURPOSE: library for COZIR range of sensors for Arduino
66
// Polling Mode + stream parser
77
// URL: https://github.com/RobTillaart/Cozir
@@ -14,7 +14,7 @@
1414
#include "Arduino.h"
1515

1616

17-
#define COZIR_LIB_VERSION (F("0.3.8"))
17+
#define COZIR_LIB_VERSION (F("0.3.9"))
1818

1919

2020
// OUTPUT FIELDS

libraries/Cozir/examples/Cozir_CO2_adaptive/Cozir_CO2_adaptive.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// NOTE: this sketch needs a MEGA or a Teensy that supports a second
88
// Serial port named Serial1
99
// The sketch updates the polling interval depending on the level of CO2
10-
// when higher the interval wil be shorter.
10+
// when higher the interval will be shorter.
1111

1212

1313
#include "cozir.h"
@@ -26,6 +26,8 @@ void setup()
2626
czr.init();
2727

2828
Serial.begin(115200);
29+
Serial.println();
30+
Serial.println(__FILE__);
2931
Serial.print("COZIR_LIB_VERSION: ");
3032
Serial.println(COZIR_LIB_VERSION);
3133
Serial.println();

libraries/Cozir/examples/Cozir_CO2_only/Cozir_CO2_only.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ void setup()
2121
czr.init();
2222

2323
Serial.begin(115200);
24+
Serial.println();
25+
Serial.println(__FILE__);
2426
Serial.print("COZIR_LIB_VERSION: ");
2527
Serial.println(COZIR_LIB_VERSION);
2628
Serial.println();

0 commit comments

Comments
 (0)