Node.js package for the Vishay VEML6070 UVA Light Sensor, written in TypeScript.
- Node.js 14 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.
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
examples directory contains examples that demonstrate both approaches.
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 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.