/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2025 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "spi.h" #include "tim.h" #include "gpio.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include "variable.h" #include "lcd.h" #include "test.h" #include "SegLed.h" #include "MatrixKey.h" #include "gui.h" #include /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ /* USER CODE BEGIN PTD */ /* USER CODE END PTD */ /* Private define ------------------------------------------------------------*/ /* USER CODE BEGIN PD */ /* USER CODE END PD */ /* Private macro -------------------------------------------------------------*/ /* USER CODE BEGIN PM */ /* USER CODE END PM */ /* Private variables ---------------------------------------------------------*/ /* USER CODE BEGIN PV */ uint16_t mPos=0; uint16_t mNum=15; stSysTickTimer sSysTickTimer = { 0, 0, 0, 0 }; uint8_t tempValue = 255; structTime stTime = { .mSecond = 50, .mMinute = 45, .mHour = 8, .mTimeCount = 0, .bSecondIsOk = 0, .mTenMilCount = 0, .bTenMilIsOk = 0 }; uint8_t KeyValue = 0; extern uint8_t is_setting_time; extern TIME_STATE set_time_state; extern uint32_t blink_counter; extern uint8_t show_digit; enum picture_index { NEURO_SAMA_SMALL, EVIL_NEURO_SMALL } pic_index = 0; extern const unsigned char gImage_qq[3200]; extern const unsigned char gImage_Neuro_Sama[40704]; extern const unsigned char gImage_Neuro_Sama_small[10112]; extern const unsigned char gImage_Evil_Neuro_small[10240]; /* USER CODE END PV */ /* Private function prototypes -----------------------------------------------*/ void SystemClock_Config(void); /* USER CODE BEGIN PFP */ /* USER CODE END PFP */ /* Private user code ---------------------------------------------------------*/ /* USER CODE BEGIN 0 */ void Gui_Drawbmp_full(uint16_t x, uint16_t y, uint16_t width, uint16_t height, const unsigned char *p) { int i; unsigned char picH,picL; LCD_SetWindows(x,y,x+width-1,y+height-1); for(i=0;i