From 9e2630a8f3887df3d8f11ee6a27d0d34b331ef28 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Tue, 18 Nov 2025 11:21:53 +0800 Subject: [PATCH] update thingsboard defconfig file --- project/lightd/hal/ds18b20.h | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/project/lightd/hal/ds18b20.h b/project/lightd/hal/ds18b20.h new file mode 100644 index 0000000..e756134 --- /dev/null +++ b/project/lightd/hal/ds18b20.h @@ -0,0 +1,31 @@ +/********************************************************************************* + * Copyright: (C) 2023 LingYun IoT System Studio + * All rights reserved. + * + * Filename: ds18b20.h + * Description: This file is temperature sensor DS18B20 code + * + * Version: 1.0.0(2023/8/10) + * Author: Guo Wenxue <guowenxue@gmail.com> + * 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_ + +extern int ds18b20_get_temperature(float *temp); + +#endif /* ----- #ifndef _DS18B20_H_ ----- */ + -- Gitblit v1.9.1