From 4de24b43bfc373f46f0510703cde7562fb8cb703 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Tue, 18 Nov 2025 16:11:32 +0800
Subject: [PATCH] update iniparser to remove warnning

---
 project/4.mqttd/modules/tsl2561.h |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/project/4.mqttd/modules/tsl2561.h b/project/4.mqttd/modules/tsl2561.h
new file mode 100644
index 0000000..540a0bd
--- /dev/null
+++ b/project/4.mqttd/modules/tsl2561.h
@@ -0,0 +1,34 @@
+/*********************************************************************************
+ *      Copyright:  (C) 2023 LingYun IoT System Studio
+ *                  All rights reserved.
+ *
+ *       Filename:  tsl2561.h
+ *    Description:  This file is the Lux sensor TSL2561 code
+ *
+ *        Version:  1.0.0(10/08/23)
+ *         Author:  Guo Wenxue <guowenxue@gmail.com>
+ *      ChangeLog:  1, Release initial version on "10/08/23 17:52:00"
+ *
+ * Pin connection:
+ *              TSL2561 Module           Raspberry Pi Board
+ *                   VCC      <----->      #Pin1(3.3V)
+ *                   SDA0     <----->      #Pin27(SDA, BCM GPIO0)
+ *                   SCL0     <----->      #Pin28(SCL, BCM GPIO1)
+ *                   GND      <----->      GND
+ *
+ * /boot/config.txt:
+ *                  dtoverlay=i2c0,pins_0_1
+ *
+ ********************************************************************************/
+
+#ifndef  _TSL2561_H_
+#define  _TSL2561_H_
+
+#define TSL2561_I2CDEV                 "/dev/i2c-0"
+#define TSL2561_I2CADDR                 0x39
+
+extern int tsl2561_get_lux(float *lux);
+
+#endif   /* ----- #ifndef _TSL2561_H_  ----- */
+
+

--
Gitblit v1.9.1