From 603196570c338248c294f3e054a4e920764bc321 Mon Sep 17 00:00:00 2001 From: xiaozhou233 Date: Wed, 1 Jul 2026 18:32:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E5=B9=95=E6=B7=BB=E5=8A=A0=E6=AC=A2?= =?UTF-8?q?=E8=BF=8E=E7=95=8C=E9=9D=A2=EF=BC=8C=E5=88=A0=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stm32f103c8t6/Core/Src/main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/stm32f103c8t6/Core/Src/main.c b/stm32f103c8t6/Core/Src/main.c index 32d4c9f..b0410e8 100644 --- a/stm32f103c8t6/Core/Src/main.c +++ b/stm32f103c8t6/Core/Src/main.c @@ -96,17 +96,16 @@ int main(void) MX_ADC1_Init(); /* USER CODE BEGIN 2 */ ST7735_Init(); + + // Display Welcome + ST7735_FillScreen(ST7735_BLACK); + ST7735_WriteString(5, 5, "Welcome!", Font_11x18, ST7735_WHITE, ST7735_BLACK); /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { - ST7735_FillScreen(ST7735_BLACK); - ST7735_WriteString(0, 0, "Font_7x10, red on black, lorem ipsum dolor sit amet", Font_7x10, ST7735_RED, ST7735_BLACK); - ST7735_WriteString(0, 3*10, "Font_11x18, green, lorem ipsum", Font_11x18, ST7735_GREEN, ST7735_BLACK); - ST7735_WriteString(0, 3*10+3*18, "Font_16x26", Font_16x26, ST7735_BLUE, ST7735_BLACK); - HAL_Delay(2000); /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */