jvsveml6070
Version:
Node.js package for the Vishay VEML6070 UVA Light Sensor, written in TypeScript.
29 lines (28 loc) • 840 B
TypeScript
import { UvIndexRiskLevel } from './enums/module';
export declare class UvIndex {
/**
* The UV index.
*/
readonly value: number;
/**
* Creates a new `UvIndex` instance.
*
* @param value - The UV index.
*/
constructor(value: number);
/**
* The UV index risk level.
*/
get riskLevel(): UvIndexRiskLevel;
/**
* Creates a new `UvIndex` instance from a sensor value.
*
* @param rSet - The RSET value (in kΩ).
* @param normalizedValue - The normalized value.
* This is the raw value divided by the integration time multiplier, resulting in the 1T
* value.
*
* @returns The created `UvIndex` instance.
*/
static fromSensorValue(rSet: number, normalizedValue: number): UvIndex;
}