From 53de825c4c4d8325c02341177f62ab84897eb5ee Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sat, 25 Jul 2026 22:09:43 +0800
Subject: [PATCH] update vscode task.json and add stm32flash tools

---
 ex2.i2c-bitbang/Board/sht20.h |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/ex2.i2c-bitbang/Board/sht20.h b/ex2.i2c-bitbang/Board/sht20.h
new file mode 100644
index 0000000..0968ded
--- /dev/null
+++ b/ex2.i2c-bitbang/Board/sht20.h
@@ -0,0 +1,33 @@
+/**********************************************************************
+ *   Copyright: (C)2024 LingYun IoT System Studio
+ *      Author: GuoWenxue<guowenxue@gmail.com>
+ *
+ * Description: SHT20 Temperature & humidity sensor driver on ISKBoard
+ *
+ *   ChangeLog:
+ *        Version    Date       Author            Description
+ *        V1.0.0  2024.08.29    GuoWenxue      Release initial version
+ *
+ ***********************************************************************/
+
+#ifndef __SHT20_H
+#define __SHT20_H
+
+#include "i2c_bitbang.h"
+
+/**
+ * @brief  SHT20 初始化并软复位芯片
+ * @param  bus: 绑定的 I2C 物理总线指针
+ * @retval 0: 成功; -1: 失败
+ */
+extern int sht20_init(i2c_bus_t *bus);
+
+/**
+ * @brief  应用层温湿度采样接口函数
+ * @param  temperature: 存放输出温度结果的指针
+ * @param  humidity:    存放输出湿度结果的指针
+ * @retval 0: 采样成功且CRC通过; -1: 采样或校验失败
+ */
+extern int sht20_sample_TrH(float *temperature, float *humidity);
+
+#endif

--
Gitblit v1.10.0