mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.1.6 AnalogUVSensor
This commit is contained in:
parent
fb81c88c8e
commit
bd77c35574
3
libraries/AnalogUVSensor/.github/FUNDING.yml
vendored
3
libraries/AnalogUVSensor/.github/FUNDING.yml
vendored
@ -1,4 +1,5 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: RobTillaart
|
||||
github: RobTillaart
|
||||
custom: "https://www.paypal.me/robtillaart"
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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$"
|
||||
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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");
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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": "*",
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user