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/oled_font.h |   64 ++++++++++++++++++++++++++++++++
 1 files changed, 64 insertions(+), 0 deletions(-)

diff --git a/ex2.i2c-bitbang/Board/oled_font.h b/ex2.i2c-bitbang/Board/oled_font.h
new file mode 100644
index 0000000..7439ff2
--- /dev/null
+++ b/ex2.i2c-bitbang/Board/oled_font.h
@@ -0,0 +1,64 @@
+/**********************************************************************
+*   Copyright: (C)2021 LingYun IoT System Studio <www.weike-iot.com>
+*      Author: GuoWenxue<guowenxue@gmail.com> QQ: 281143292
+* Description: ISKBoard OLED font data (PCtoLCD.exe generated)
+*
+*   ChangeLog:
+*        Version    Date       Author            Description
+*        V1.0.0  2021.08.10  GuoWenxue      Release initial version
+***********************************************************************/
+
+#ifndef __OLED_FONT_H
+#define __OLED_FONT_H
+
+#include <stdint.h>
+
+/*+--------------------------------+
+ *|      ASCII font size 6x8       |
+ *+--------------------------------+*/
+#define F6x8_COUNT  95
+extern const uint8_t F6x8[][6];
+
+/*+--------------------------------+
+ *|      ASCII font size 8x16      |
+ *+--------------------------------+*/
+#define F8X16_CHAR_BYTES  16
+#define F8X16_COUNT       95
+extern const uint8_t F8X16[];
+
+/*+--------------------------------+
+ *|      BMP Logo for 128x32       |
+ *+--------------------------------+*/
+#define BMP_LOGO_WIDTH   128
+#define BMP_LOGO_HEIGHT  32
+#define BMP_LOGO_SIZE    (BMP_LOGO_WIDTH * BMP_LOGO_HEIGHT / 8)
+extern const uint8_t bmp_logo[];
+
+/*+--------------------------------+
+ *|   Chinese Font 16x16 SongTi    |
+ *+--------------------------------+*/
+
+/* 每个汉字 32 字节 (16x16 点阵, 上下各 16 字节分属两页) */
+#define HZK_CHAR_BYTES  32
+
+/* 宋体 16X16: 凌云实验室 */
+#define HZK_LEN_LINGYUN         5
+extern const uint8_t Hzk_LingYun[][HZK_CHAR_BYTES];
+
+/* 宋体 16x16: 温度 */
+#define HZK_LEN_TEMP            2
+extern const uint8_t Hzk_Temp[][HZK_CHAR_BYTES];
+
+/* 宋体 16x16: 湿度 */
+#define HZK_LEN_HUMD            2
+extern const uint8_t Hzk_Humd[][HZK_CHAR_BYTES];
+
+/* 宋体 16X16: 光强 */
+#define HZK_LEN_LIGHT            2
+extern const uint8_t Hzk_Light[][HZK_CHAR_BYTES];
+
+/* 宋体 16X16:  声音 */
+#define HZK_LEN_NOISY            2
+extern const uint8_t Hzk_Noisy[][HZK_CHAR_BYTES];
+
+#endif /* __OLED_FONT_H */

--
Gitblit v1.10.0