GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — StudyRoomControlPanelLTDC/main.c at master · Gorgeous2017/StudyRoomControlPanelLTDC Expand file tree/ Copy pathmain.cMore file actions 63 lines (49 loc) · 1.33 KB / Copy pathmain.cFile metadata and controls63 lines (49 loc) · 1.33 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 /** * @file main.c * @author Gump * @version V0.1 * @date 2019-09-26 * @brief LTDC版本的室内控制面板程序 * * @copyright Copyright (c) <2019> <HANSHAN NORMAL UNIVERSITY(CHAOZHOU)> All rights Reserved. * Media Recognition and Intelligent System Team * * none */ #include "stm32f4xx.h" #include "./sdram/bsp_sdram.h" #include "./lcd/bsp_lcd.h" #include "./touch/gt9xx.h" #include "panel_usart.h" #include "panel.h" /** * @brief 主函数 * * @return int */ int main(void) { /* 面板串口初始化 */ PANEL_USART_Config(); /* 触摸屏初始化 */ GTP_Init_Panel(); /* 初始化液晶屏 */ LCD_Init(); LCD_LayerInit(); LTDC_Cmd(ENABLE); /* 把背景层刷黑色 */ LCD_SetLayer(LCD_BACKGROUND_LAYER); LCD_Clear(LCD_COLOR_BLACK); /* 初始化后默认使用前景层 */ LCD_SetLayer(LCD_FOREGROUND_LAYER); /* 默认设置不透明,该函数参数为不透明度,范围 0-0xff ,0为全透明,0xff为不透明 */ LCD_SetTransparency(0xFF); LCD_Clear(LCD_COLOR_WHITE); /* 经过LCD_SetLayer(LCD_FOREGROUND_LAYER)函数后, 以下液晶操作都在前景层刷新,除非重新调用过LCD_SetLayer函数设置背景层 */ /* 面板初始化 */ Panel_Init(); Delay(0xfff); while(1); } /*********************************************END OF FILE**********************/ |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |