📄 video.h
字号:
/****************************************************************************** Product: Direct Video (VGA) screen output* Last Updated for Version: 3.1.06* Date of the Last Update: May 06, 2006** Q u a n t u m L e a P s* ---------------------------* innovating embedded systems** Copyright (c) 2002-2006 Quantum Leaps, LLC. All rights reserved.** Internet: www.quantum-leaps.com Licensing: sales@quantum-leaps.com** This Software is protected by the United States copyright laws and* international treaties. Distribution of products containing this Software* or based upon this Software (Derivative Works) requires a valid Quantum* Leaps Distribution License. Any other distribution, in source or binary* format is illegal.*****************************************************************************/#ifndef video_h#define video_h/*..........................................................................*/enum VideoColor { /* foreground */ VIDEO_FGND_BLACK = 0x00, VIDEO_FGND_BLUE = 0x01, VIDEO_FGND_GREEN = 0x02, VIDEO_FGND_CYAN = 0x03, VIDEO_FGND_RED = 0x04, VIDEO_FGND_PURPLE = 0x05, VIDEO_FGND_BROWN = 0x06, VIDEO_FGND_LIGHT_GRAY = 0x07, VIDEO_FGND_DARK_GRAY = 0x08, VIDEO_FGND_LIGHT_BLUE = 0x09, VIDEO_FGND_LIGHT_GREEN = 0x0A, VIDEO_FGND_LIGHT_CYAN = 0x0B, VIDEO_FGND_LIGHT_RED = 0x0C, VIDEO_FGND_LIGHT_PURPLE = 0x0D, VIDEO_FGND_YELLOW = 0x0E, VIDEO_FGND_WHITE = 0x0F, /* background */ VIDEO_BGND_BLACK = 0x00, VIDEO_BGND_BLUE = 0x10, VIDEO_BGND_GREEN = 0x20, VIDEO_BGND_CYAN = 0x30, VIDEO_BGND_RED = 0x40, VIDEO_BGND_PURPLE = 0x50, VIDEO_BGND_BROWN = 0x60, VIDEO_BGND_LIGHT_GRAY = 0x70, VIDEO_BGND_BLINK = 0x80};/*..........................................................................*/void Video_clearScreen(uint8_t bgColor);/*..........................................................................*/void Video_clearRect(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint8_t bgColor);/*..........................................................................*/void Video_printStrAt(uint8_t x, uint8_t y, uint8_t color, char const *str);/*..........................................................................*/void Video_printNumAt(uint8_t x, uint8_t y, uint8_t color, uint32_t num);#endif /* video_h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -