From fcfb88f7bb207b825c3f59a8a0859f1e9146420c Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Wed, 03 Nov 2021 22:55:08 +0800 Subject: [PATCH] update ds18b20.c, add pin connected way --- modules/c/gpiod.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/c/gpiod.c b/modules/c/gpiod.c index 3ad04bd..c59e694 100644 --- a/modules/c/gpiod.c +++ b/modules/c/gpiod.c @@ -40,8 +40,9 @@ if( argc != 3 ) { printf(" Usage: sudo %s [BCM Pin number] [1/0]\n", argv[0]); - printf("example, turn BCM Pin #6 lowlevel : sudo %s 6 0\n", argv[0]); - printf("example, turn BCM Pin #6 highlevel: sudo %s 6 1\n", argv[0]); + printf("example, turn BCM Pin #19 lowlevel : sudo %s 19 0\n", argv[0]); + printf("example, turn BCM Pin #19 highlevel: sudo %s 19 1\n", argv[0]); + return 0; } bcm_pin = atoi(argv[1]); -- Gitblit v1.9.1