A sensor that reads the intensity of ultraviolet light.
Product Link (https://www.dfrobot.com)
SKU: SEN0636
A sensor that reads the intensity of ultraviolet light.
To use this library, first download the library file, paste it into the \Arduino\libraries directory, then open the examples folder and run the demo in the folder.
/**
* @fn begin
* @brief Init s12sd device
* @return Return value init status
* @retval ture Succeed
* @retval false Failed
*/
int8_t begin(void);
/**
* @fn readUvOriginalData
* @brief Read the UV voltage value
* @return voltage value (mV)
*/
uint16_t readUvOriginalData(void);
/**
* @fn readUvIndexData
* @brief Read the UV Index
* @return UV Index
*/
uint16_t readUvIndexData(void);
/**
* @fn readRiskLevelData
* @brief Read the risk level
* @return 0-4 (Low Risk,Moderate Risk,High Risk,Very High Risk,Extreme Risk)
*/
uint16_t readRiskLevelData(void);
MCU | SoftwareSerial | HardwareSerial | IIC |
---|---|---|---|
Arduino Uno | √ | X | √ |
Mega2560 | √ | √ | √ |
Leonardo | √ | √ | √ |
ESP32 | X | √ | √ |
ESP8266 | √ | X | √ |
micro:bit | X | X | √ |
FireBeetle M0 | X | √ | √ |
Raspberry Pi | X | √ | √ |
- 2024-10-11 - Version 1.0.0 released.
Written by fary([email protected]), 2024. (Welcome to our website)