From cd006b9357bcb632a2d4539c086fb93ca6ae23c6 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Mon, 17 Nov 2025 23:37:49 +0800
Subject: [PATCH] Update lightd to support DS18B20 and TLS2561

---
 project/lightd/hal/ds18b20.h |   26 +++++++++++++++++++-------
 1 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/project/lightd/hal/ds18b20.h b/project/lightd/hal/ds18b20.h
index 58540a8..e756134 100644
--- a/project/lightd/hal/ds18b20.h
+++ b/project/lightd/hal/ds18b20.h
@@ -1,19 +1,31 @@
 /*********************************************************************************
- *      Copyright:  (C) 2018 LingYun IoT System Studio
+ *      Copyright:  (C) 2023 LingYun IoT System Studio
  *                  All rights reserved.
  *
- *       Filename:  ds18b20.c
+ *       Filename:  ds18b20.h
  *    Description:  This file is temperature sensor DS18B20 code
  *
- *        Version:  1.0.0(2018/10/14)
+ *        Version:  1.0.0(2023/8/10)
  *         Author:  Guo Wenxue <guowenxue@gmail.com>
- *      ChangeLog:  1, Release initial version on "2018/10/14 12:13:26"
+ *      ChangeLog:  1, Release initial version on "2023/8/10 12:13:26"
+ *
+ * Pin connection:
+ *
+ *               DS18B20 Module          Raspberry Pi Board
+ *                   VCC      <----->      #Pin1(3.3V)
+ *                   DQ       <----->      #Pin7(BCM GPIO4)
+ *                   GND      <----->      GND
+ *
+ * /boot/config.txt:
+ *
+ *          dtoverlay=w1-gpio-pullup,gpiopin=4
  *
  ********************************************************************************/
 
-#ifndef __DS18B20_H
-#define __DS18B20_H
+#ifndef  _DS18B20_H_
+#define  _DS18B20_H_
 
 extern int ds18b20_get_temperature(float *temp);
 
-#endif
+#endif   /* ----- #ifndef _DS18B20_H_  ----- */
+

--
Gitblit v1.9.1