1 Star 0 Fork 0

DFRobot/DFRobot_ColorTemperature

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

DFRobot_ColorTemperature

SEN0611是一个色温传感器,通过调用库中api能够获取色温数据、光照强度、色坐标数据。

产品效果图片

产品链接(https://www.dfrobot.com

SKU:SEN0611

目录

概述

SEN0593是一个色温传感器,通过调用库中api能够获取色温数据、光照强度、色坐标数据。

库安装

使用此库前,请首先下载库文件,将其粘贴到\Arduino\libraries目录中,然后打开examples文件夹并在该文件夹中运行演示。

方法

  /**
   * @fn begin
   * @brief 初始化SEN0593
   * @return 返回初始化状态
   * @retval 0  成功
   * @retval -1 失败
   */
  int8_t begin(void);

  /**
   * @fn readLUX
   * @brief 获取传感器光照强度
   * @return 返回获取得光照强度
  */
  uint16_t readLUX(void);
  /**
   * @fn readCCT
   * @brief 获取色温数据
   * @return 返回获取得色温
  */
  uint16_t readCCT(void);
  /**
   * @fn readX
   * @brief 获取色坐标X
   * @return 返回获取得色坐标X
  */
  float readX(void);
  /**
   * @fn readY
   * @brief 获取色坐标Y
   * @return 返回获取得色坐标Y
  */
  float readY(void);

兼容性

MCU SoftwareSerial HardwareSerial IIC
Arduino Uno X
Mega2560
Leonardo
ESP32 X
ESP8266 X
FireBeetle M0 X X
raspberry X

历史

  • 2024-04-01 - 1.0.0 版本

创作者

Written by TangJie(jie.tang@dfrobot.com), 2021. (Welcome to our website)

MIT License Copyright (c) 2020 DFRobot Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
C++ 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dfrobot/DFRobot_ColorTemperature.git
git@gitee.com:dfrobot/DFRobot_ColorTemperature.git
dfrobot
DFRobot_ColorTemperature
DFRobot_ColorTemperature
master

搜索帮助