From 5e9d03d507aad324a803eb8795e0eed6fb671761 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Mon, 10 Jul 2023 15:24:52 +0800 Subject: [PATCH] Merge branch 'master' of http://master.iot-yun.club:8088/r/raspberrypi --- modules/c/ds18b20.c | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/modules/c/ds18b20.c b/modules/c/ds18b20.c index 43da548..29fbdc3 100644 --- a/modules/c/ds18b20.c +++ b/modules/c/ds18b20.c @@ -8,9 +8,21 @@ * Version: 1.0.0(2018/10/14) * Author: Guo Wenxue <guowenxue@gmail.com> * ChangeLog: 1, Release initial version on "2018/10/14 12:13:26" - * + * + * + * Pin connection: + * + * vcc --- #Pin1 ( 3.3v ) + * DQ --- #Pin7 (BCM GPIO4) + * GND --- #Pin9 ( GND ) + * + * /boot/config.txt: + * + * dtoverlay=w1-gpio-pullup,gpiopin=4 + * ********************************************************************************/ + #include <stdio.h> #include <stdlib.h> #include <unistd.h> -- Gitblit v1.9.1