From 56e39e9588a56d422b9ce25ca228ecacc4ed78a6 Mon Sep 17 00:00:00 2001 From: rob tillaart Date: Wed, 20 Oct 2021 09:58:17 +0200 Subject: [PATCH] 0.3.1 Cozir --- libraries/Cozir/.arduino-ci.yml | 10 +++++++--- .../Cozir/.github/workflows/arduino_test_runner.yml | 10 +++++++--- libraries/Cozir/README.md | 7 +++++-- libraries/Cozir/cozir.cpp | 3 ++- libraries/Cozir/cozir.h | 4 ++-- libraries/Cozir/library.json | 2 +- libraries/Cozir/library.properties | 2 +- 7 files changed, 25 insertions(+), 13 deletions(-) diff --git a/libraries/Cozir/.arduino-ci.yml b/libraries/Cozir/.arduino-ci.yml index ff5659b9..e7cb4633 100644 --- a/libraries/Cozir/.arduino-ci.yml +++ b/libraries/Cozir/.arduino-ci.yml @@ -2,6 +2,10 @@ compile: # Choosing to run compilation tests on 2 different Arduino platforms platforms: - uno - - leonardo - - due - - zero + # - due + # - zero + # - leonardo + - m4 + - esp32 + # - esp8266 + # - mega2560 \ No newline at end of file diff --git a/libraries/Cozir/.github/workflows/arduino_test_runner.yml b/libraries/Cozir/.github/workflows/arduino_test_runner.yml index 476456bb..096b975b 100644 --- a/libraries/Cozir/.github/workflows/arduino_test_runner.yml +++ b/libraries/Cozir/.github/workflows/arduino_test_runner.yml @@ -4,10 +4,14 @@ name: Arduino CI on: [push, pull_request] jobs: - arduino_ci: + runTest: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: Arduino-CI/action@master - # Arduino-CI/action@v0.1.1 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + - run: | + gem install arduino_ci + arduino_ci.rb diff --git a/libraries/Cozir/README.md b/libraries/Cozir/README.md index d3d2a482..0d8ef129 100644 --- a/libraries/Cozir/README.md +++ b/libraries/Cozir/README.md @@ -1,5 +1,7 @@ [![Arduino CI](https://github.com/RobTillaart/Cozir/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci) +[![Arduino-lint](https://github.com/RobTillaart/Cozir/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/Cozir/actions/workflows/arduino-lint.yml) +[![JSON check](https://github.com/RobTillaart/Cozir/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/Cozir/actions/workflows/jsoncheck.yml) [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/Cozir/blob/master/LICENSE) [![GitHub release](https://img.shields.io/github/release/RobTillaart/Cozir.svg?maxAge=3600)](https://github.com/RobTillaart/Cozir/releases) @@ -20,6 +22,7 @@ Idea is to make the interface identical if possible. #### Notes + - the **CozirDemoHWSerial.ino** example needs to run on a MEGA or a Teensy, at least a board with more than one Serial port. - Read the datasheet before using this library. @@ -79,8 +82,8 @@ Read datasheet before using these functions: use with care, read datasheet before use. -| value | meaning | -|:-----:|:--------| +| value | meaning | +|:-----:|:--------------------------------| | 0 | Special, see datasheet page ... | | 1 | fast, but can be noisy | | 32 | default, good average | diff --git a/libraries/Cozir/cozir.cpp b/libraries/Cozir/cozir.cpp index 5373d2f9..20928d15 100644 --- a/libraries/Cozir/cozir.cpp +++ b/libraries/Cozir/cozir.cpp @@ -1,13 +1,14 @@ // // FILE: Cozir.cpp // AUTHOR: DirtGambit & Rob Tillaart -// VERSION: 0.3.0 +// VERSION: 0.3.1 // PURPOSE: library for COZIR range of sensors for Arduino // Polling Mode // URL: https://github.com/RobTillaart/Cozir // http://forum.arduino.cc/index.php?topic=91467.0 // // HISTORY: +// 0.3.1 2021-10-20 update Arduino-CI, badges in readme.md // 0.3.0 2021-08-08 Major update - breaks interface (names mainly) // add isInitialized(), add getOperatingMode(), // add getOutputFields(), add inOutputFields(), diff --git a/libraries/Cozir/cozir.h b/libraries/Cozir/cozir.h index 1bb71850..215e60a3 100644 --- a/libraries/Cozir/cozir.h +++ b/libraries/Cozir/cozir.h @@ -2,7 +2,7 @@ // // FILE: Cozir.h // AUTHOR: DirtGambit & Rob Tillaart -// VERSION: 0.3.0 +// VERSION: 0.3.1 // PURPOSE: library for COZIR range of sensors for Arduino // Polling Mode // URL: https://github.com/RobTillaart/Cozir @@ -15,7 +15,7 @@ #include "Arduino.h" -#define COZIR_LIB_VERSION (F("0.3.0")) +#define COZIR_LIB_VERSION (F("0.3.1")) // OUTPUTFIELDS diff --git a/libraries/Cozir/library.json b/libraries/Cozir/library.json index 5c185f20..4f5af83d 100644 --- a/libraries/Cozir/library.json +++ b/libraries/Cozir/library.json @@ -18,7 +18,7 @@ "type": "git", "url": "https://github.com/RobTillaart/Cozir.git" }, - "version": "0.3.0", + "version": "0.3.1", "license": "MIT", "frameworks": "arduino", "platforms": "*" diff --git a/libraries/Cozir/library.properties b/libraries/Cozir/library.properties index 9838b803..013ed9a0 100644 --- a/libraries/Cozir/library.properties +++ b/libraries/Cozir/library.properties @@ -1,5 +1,5 @@ name=Cozir -version=0.3.0 +version=0.3.1 author=Rob Tillaart , DirtGambit maintainer=Rob Tillaart sentence=Arduino library for COZIR range of CO2 sensors. Polling mode only.