📄 memdev_autodev.c
字号:
/*********************************************************************************************************** uC/GUI* Universal graphic software for embedded applications** (c) Copyright 2002, Micrium Inc., Weston, FL* (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH** 礐/GUI is protected by international copyright laws. Knowledge of the* source code may not be used to write a similar product. This file may* only be used in accordance with a license and should not be redistributed* in any way. We appreciate your understanding and fairness.*----------------------------------------------------------------------File : MEMDEV_AutoDev.cPurpose : Example demonstrating the use of GUI_AUTODEV-objects----------------------------------------------------------------------*/#include "gui.h"#include <math.h>#include <stddef.h>#include "44blib.h"#include "WM.H"#define countof(Obj) (sizeof(Obj)/sizeof(Obj[0]))#define DEG2RAD (3.1415926f/180)/********************************************************************* Scale bitmap**********************************************************************//*int hMem;static void MemDev(void){GUI_meMDEV_handle hMem;hMem=GUI_MEMDEV_Create(0,0,110,18);GUI_MEMDEV_Select(hMem);GUI_DispStringAt("Memmory Device",0,0);GUI_MEMDEV_CopyToLCD(hMem);GUI_MEMDEV_Select(0);GUI_MEMDEV_Select(0);GUI_Delay(1000);GUI_Clear();}*/static const GUI_COLOR ColorsScaleR140[] = { 0x000000,0x00AA00,0xFFFFFF,0x0000AA, 0x00FF00,0xAEAEAE,0x737373,0xD3D3D3, 0xDFDFDF,0xBBDFBB,0x6161DF,0x61DF61, 0xBBBBDF,0xC7C7C7,0x616193};static const GUI_LOGPALETTE PalScaleR140 = { 15, /* number of entries */ 0, /* No transparency */ &ColorsScaleR140[0]};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -