From 47579e3790b1ee5a1ad2ce35ea6028cd9ddf6ea0 Mon Sep 17 00:00:00 2001
From: GuoWenxue <“guowenxue@gmail.com”>
Date: Fri, 29 Apr 2022 09:23:27 +0800
Subject: [PATCH] update client_main.c to use packet_segmented_pack

---
 modules/c/sht20.c |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/modules/c/sht20.c b/modules/c/sht20.c
index 5395bbe..d41e451 100644
--- a/modules/c/sht20.c
+++ b/modules/c/sht20.c
@@ -8,7 +8,18 @@
  *        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   --- #Pin17 ( 3.3v )
+ *          GND   --- #Pin20 ( GND  )
+ *          SDA   --- #Pin02 ( SDA  )
+ *          SCL   --- #Pin03 ( SCL  )
+ *
+ * /boot/config.txt:
+ *
+ *          dtparam=i2c_arm=on
+ *
  ********************************************************************************/
 
 #include <stdio.h>
@@ -17,8 +28,7 @@
 #include <sys/ioctl.h>
 #include <linux/types.h>
 #include <sys/stat.h>
-#include <linux/i2c.h>
-#include <linux/i2c-dev.h> 
+#include <linux/i2c-dev.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>

--
Gitblit v1.9.1