Node.js package for the Vishay VEML6070 UVA Light Sensor, written in TypeScript.
This repository has moved to GitLab. The GitHub repository been archived and will no longer be maintained.
- Node.js 16.16.0 or later
- Vishay VEML6070 UVA Light Sensor with I2C Interface connected to for example a Raspberry Pi
This package only depends on the i2c-bus
package. Please refer to the package.json
file for a list of development dependencies.
TSDoc is used throughout the code. The docs
directory contains documentation automatically generated by TypeDoc. Thanks to GitHub Pages, you can quickly browse the documentation here as well.
The API is mostly asynchronous; most functions return a Promise
that resolves when the function has finished successfully. This means that you'll need to use .then
/ .catch
or async
/ await
. The examples
directory contains examples that demonstrate both approaches.
Please refer to the Vishay VEML6070 datasheet, Vishay VEML6070 Application Note and this package's documentation for more information about configuration options and other usage notes.
Important note: depending on the use case, you may need to provide a custom RSET resistor value (in kΩ, defaults to 270kΩ) and/or I2C bus number (defaults to 1).
Copyright (c) 2021-2022 Joris Vervuurt Software
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.