0.1.6 AnalogUVSensor

This commit is contained in:
Rob Tillaart 2024-04-06 11:27:13 +02:00
parent fb81c88c8e
commit bd77c35574
17 changed files with 27 additions and 25 deletions

View File

@ -1,4 +1,5 @@
# These are supported funding model platforms
github: RobTillaart
custom: "https://www.paypal.me/robtillaart"

View File

@ -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

View File

@ -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

View File

@ -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$"

View File

@ -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

View File

@ -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();

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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()

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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": "*",

View File

@ -1,5 +1,5 @@
name=AnalogUVSensor
version=0.1.5
version=0.1.6
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=AnalogUVSensor library for Arduino.