From bd77c35574a0ebb9b1eeec9bd92dc37a48446339 Mon Sep 17 00:00:00 2001 From: Rob Tillaart Date: Sat, 6 Apr 2024 11:27:13 +0200 Subject: [PATCH] 0.1.6 AnalogUVSensor --- libraries/AnalogUVSensor/.github/FUNDING.yml | 3 ++- .../AnalogUVSensor/.github/workflows/arduino-lint.yml | 4 ++-- .../.github/workflows/arduino_test_runner.yml | 4 ++-- libraries/AnalogUVSensor/.github/workflows/jsoncheck.yml | 5 +++-- libraries/AnalogUVSensor/AnalogUVSensor.cpp | 2 +- libraries/AnalogUVSensor/AnalogUVSensor.h | 5 ++--- libraries/AnalogUVSensor/CHANGELOG.md | 5 ++++- libraries/AnalogUVSensor/LICENSE | 2 +- libraries/AnalogUVSensor/README.md | 8 ++++++-- .../examples/analog_uv_sensor/analog_uv_sensor.ino | 3 +-- libraries/AnalogUVSensor/examples/uvi_color/uvi_color.ino | 1 - libraries/AnalogUVSensor/examples/uvi_demo/uvi_demo.ino | 1 - .../examples/uvi_demo_low_power/uvi_demo_low_power.ino | 1 - .../AnalogUVSensor/examples/uvi_plotter/uvi_plotter.ino | 3 +-- libraries/AnalogUVSensor/examples/uvi_test/uvi_test.ino | 1 - libraries/AnalogUVSensor/library.json | 2 +- libraries/AnalogUVSensor/library.properties | 2 +- 17 files changed, 27 insertions(+), 25 deletions(-) diff --git a/libraries/AnalogUVSensor/.github/FUNDING.yml b/libraries/AnalogUVSensor/.github/FUNDING.yml index 90d9ab4c..2859c159 100644 --- a/libraries/AnalogUVSensor/.github/FUNDING.yml +++ b/libraries/AnalogUVSensor/.github/FUNDING.yml @@ -1,4 +1,5 @@ # These are supported funding model platforms -github: RobTillaart +github: RobTillaart +custom: "https://www.paypal.me/robtillaart" diff --git a/libraries/AnalogUVSensor/.github/workflows/arduino-lint.yml b/libraries/AnalogUVSensor/.github/workflows/arduino-lint.yml index 8a26f14a..a7490f1d 100644 --- a/libraries/AnalogUVSensor/.github/workflows/arduino-lint.yml +++ b/libraries/AnalogUVSensor/.github/workflows/arduino-lint.yml @@ -1,12 +1,12 @@ - name: Arduino-lint on: [push, pull_request] jobs: lint: runs-on: ubuntu-latest + timeout-minutes: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: arduino/arduino-lint-action@v1 with: library-manager: update diff --git a/libraries/AnalogUVSensor/.github/workflows/arduino_test_runner.yml b/libraries/AnalogUVSensor/.github/workflows/arduino_test_runner.yml index fadfa904..dbd0ce79 100644 --- a/libraries/AnalogUVSensor/.github/workflows/arduino_test_runner.yml +++ b/libraries/AnalogUVSensor/.github/workflows/arduino_test_runner.yml @@ -1,4 +1,3 @@ ---- name: Arduino CI on: [push, pull_request] @@ -6,9 +5,10 @@ on: [push, pull_request] jobs: runTest: runs-on: ubuntu-latest + timeout-minutes: 20 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: ruby-version: 2.6 diff --git a/libraries/AnalogUVSensor/.github/workflows/jsoncheck.yml b/libraries/AnalogUVSensor/.github/workflows/jsoncheck.yml index 37a11298..fd05f5f8 100644 --- a/libraries/AnalogUVSensor/.github/workflows/jsoncheck.yml +++ b/libraries/AnalogUVSensor/.github/workflows/jsoncheck.yml @@ -9,10 +9,11 @@ on: jobs: test: runs-on: ubuntu-latest + timeout-minutes: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: json-syntax-check - uses: limitusus/json-syntax-check@v1 + uses: limitusus/json-syntax-check@v2 with: pattern: "\\.json$" diff --git a/libraries/AnalogUVSensor/AnalogUVSensor.cpp b/libraries/AnalogUVSensor/AnalogUVSensor.cpp index 77aa5ca4..9e1ea452 100644 --- a/libraries/AnalogUVSensor/AnalogUVSensor.cpp +++ b/libraries/AnalogUVSensor/AnalogUVSensor.cpp @@ -1,7 +1,7 @@ // // FILE: AnalogUVSensor.h // AUTHOR: Rob Tillaart -// VERSION: 0.1.5 +// VERSION: 0.1.6 // DATE: 2021-09-25 // PURPOSE: Arduino library for an analogue UV sensor. // URL: https://github.com/RobTillaart/AnalogUVSensor diff --git a/libraries/AnalogUVSensor/AnalogUVSensor.h b/libraries/AnalogUVSensor/AnalogUVSensor.h index 873907b8..12b4950c 100644 --- a/libraries/AnalogUVSensor/AnalogUVSensor.h +++ b/libraries/AnalogUVSensor/AnalogUVSensor.h @@ -2,7 +2,7 @@ // // FILE: AnalogUVSensor.h // AUTHOR: Rob Tillaart -// VERSION: 0.1.5 +// VERSION: 0.1.6 // DATE: 2021-09-25 // PURPOSE: Arduino library for an analogue UV sensor. // URL: https://github.com/RobTillaart/AnalogUVSensor @@ -10,7 +10,7 @@ #include "Arduino.h" -#define ANALOG_UVSENSOR_LIB_VERSION (F("0.1.5")) +#define ANALOG_UVSENSOR_LIB_VERSION (F("0.1.6")) class AnalogUVSensor @@ -26,7 +26,6 @@ public: float mV2index(uint16_t milliVolt); // for external ADC char index2color(float index); - // POWER void setPowerPin(uint8_t powerPin, bool invert = false); void switchOff(); diff --git a/libraries/AnalogUVSensor/CHANGELOG.md b/libraries/AnalogUVSensor/CHANGELOG.md index 31df7c20..4d6fe224 100644 --- a/libraries/AnalogUVSensor/CHANGELOG.md +++ b/libraries/AnalogUVSensor/CHANGELOG.md @@ -6,10 +6,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.1.6] - 2024-04-06 +- update GitHub actions +- minor edits + ## [0.1.5] - 2023-10-17 - update readme.md (badges) - ## [0.1.4] - 2023-01-22 - update GitHub actions - update license 2023 diff --git a/libraries/AnalogUVSensor/LICENSE b/libraries/AnalogUVSensor/LICENSE index 088bbaf1..3afaaeda 100644 --- a/libraries/AnalogUVSensor/LICENSE +++ b/libraries/AnalogUVSensor/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021-2023 Rob Tillaart +Copyright (c) 2021-2024 Rob Tillaart Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/libraries/AnalogUVSensor/README.md b/libraries/AnalogUVSensor/README.md index c552b13f..f90d5bad 100644 --- a/libraries/AnalogUVSensor/README.md +++ b/libraries/AnalogUVSensor/README.md @@ -128,7 +128,8 @@ e.g. when the analogue sensor is switched through a MOSFET. #### Should -- investigate with different light sources (UVled, TL, sunlight). +- documentation + - investigate with different light sources (UVled, TL, sunlight). - move powerPin setting to constructor (breaking 0.2.0 ?) #### Could @@ -137,7 +138,7 @@ e.g. when the analogue sensor is switched through a MOSFET. - see https://github.com/RobTillaart/BH1750FVI library - investigate response time to stabilize e.g. does it react fast on clouds. - investigate time needed to first (stable) measurement. -- add code for external ADC (see ACS712) + #### Wont @@ -146,6 +147,9 @@ e.g. when the analogue sensor is switched through a MOSFET. - **uint32_t index2RGB(float index)** full (smooth) colour RGB mapping. - created a https://github.com/RobTillaart/map2colour lib for this feature to keep footprint in this library small. +- add code for external ADC (see ACS712) + - users can call **mV2index()** + ## Sponsor diff --git a/libraries/AnalogUVSensor/examples/analog_uv_sensor/analog_uv_sensor.ino b/libraries/AnalogUVSensor/examples/analog_uv_sensor/analog_uv_sensor.ino index 78b52b41..de46fc4f 100644 --- a/libraries/AnalogUVSensor/examples/analog_uv_sensor/analog_uv_sensor.ino +++ b/libraries/AnalogUVSensor/examples/analog_uv_sensor/analog_uv_sensor.ino @@ -2,11 +2,10 @@ // FILE: UV_sensor.ino // AUTHOR: Rob Tillaart // PURPOSE: demo -// DATE: 2021-09-21 // URL: https://github.com/RobTillaart/AnalogUVSensor // // this example is not using the library, -// sort of minimal version +// sort of reference / minimal version void setup() diff --git a/libraries/AnalogUVSensor/examples/uvi_color/uvi_color.ino b/libraries/AnalogUVSensor/examples/uvi_color/uvi_color.ino index 4fa72b33..181056f6 100644 --- a/libraries/AnalogUVSensor/examples/uvi_color/uvi_color.ino +++ b/libraries/AnalogUVSensor/examples/uvi_color/uvi_color.ino @@ -2,7 +2,6 @@ // FILE: uvi_color.ino // AUTHOR: Rob Tillaart // PURPOSE: demo UV sensor -// DATE: 2021-09-25 // URL: https://github.com/RobTillaart/AnalogUVSensor diff --git a/libraries/AnalogUVSensor/examples/uvi_demo/uvi_demo.ino b/libraries/AnalogUVSensor/examples/uvi_demo/uvi_demo.ino index cb247f00..03d4e2e6 100644 --- a/libraries/AnalogUVSensor/examples/uvi_demo/uvi_demo.ino +++ b/libraries/AnalogUVSensor/examples/uvi_demo/uvi_demo.ino @@ -2,7 +2,6 @@ // FILE: uvi_demo.ino // AUTHOR: Rob Tillaart // PURPOSE: demo UV sensor -// DATE: 2021-09-25 // URL: https://github.com/RobTillaart/AnalogUVSensor diff --git a/libraries/AnalogUVSensor/examples/uvi_demo_low_power/uvi_demo_low_power.ino b/libraries/AnalogUVSensor/examples/uvi_demo_low_power/uvi_demo_low_power.ino index 6401452a..ba0fa160 100644 --- a/libraries/AnalogUVSensor/examples/uvi_demo_low_power/uvi_demo_low_power.ino +++ b/libraries/AnalogUVSensor/examples/uvi_demo_low_power/uvi_demo_low_power.ino @@ -2,7 +2,6 @@ // FILE: uvi_demo_low_power.ino // AUTHOR: Rob Tillaart // PURPOSE: demo UV sensor -// DATE: 2021-09-25 // URL: https://github.com/RobTillaart/AnalogUVSensor diff --git a/libraries/AnalogUVSensor/examples/uvi_plotter/uvi_plotter.ino b/libraries/AnalogUVSensor/examples/uvi_plotter/uvi_plotter.ino index 00483faa..155d35d0 100644 --- a/libraries/AnalogUVSensor/examples/uvi_plotter/uvi_plotter.ino +++ b/libraries/AnalogUVSensor/examples/uvi_plotter/uvi_plotter.ino @@ -2,7 +2,6 @@ // FILE: uvi_plotter.ino // AUTHOR: Rob Tillaart // PURPOSE: demo UV sensor -// DATE: 2021-10-17 // URL: https://github.com/RobTillaart/AnalogUVSensor // Use the Arduino IDE -> Tools -> Serial plotter @@ -23,7 +22,7 @@ void setup() // Serial.println(ANALOG_UVSENSOR_LIB_VERSION); AUV.begin(A0, 5.0, 1023); - lastRead = AUV.read(5); // average 5 readings + lastRead = AUV.read(5); // average 5 readings // print the header for the plotter. Serial.println("UVI \tLAST \tDELTA"); diff --git a/libraries/AnalogUVSensor/examples/uvi_test/uvi_test.ino b/libraries/AnalogUVSensor/examples/uvi_test/uvi_test.ino index b5a5a4c4..3a6f8126 100644 --- a/libraries/AnalogUVSensor/examples/uvi_test/uvi_test.ino +++ b/libraries/AnalogUVSensor/examples/uvi_test/uvi_test.ino @@ -2,7 +2,6 @@ // FILE: uvi_test.ino // AUTHOR: Rob Tillaart // PURPOSE: demo UV sensor - generate conversion table -// DATE: 2021-09-25 // URL: https://github.com/RobTillaart/AnalogUVSensor diff --git a/libraries/AnalogUVSensor/library.json b/libraries/AnalogUVSensor/library.json index 25dd6726..e8ef40aa 100644 --- a/libraries/AnalogUVSensor/library.json +++ b/libraries/AnalogUVSensor/library.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/AnalogUVSensor.git" }, - "version": "0.1.5", + "version": "0.1.6", "license": "MIT", "frameworks": "*", "platforms": "*", diff --git a/libraries/AnalogUVSensor/library.properties b/libraries/AnalogUVSensor/library.properties index 874205c1..5a3238f0 100644 --- a/libraries/AnalogUVSensor/library.properties +++ b/libraries/AnalogUVSensor/library.properties @@ -1,5 +1,5 @@ name=AnalogUVSensor -version=0.1.5 +version=0.1.6 author=Rob Tillaart maintainer=Rob Tillaart sentence=AnalogUVSensor library for Arduino.