memdev_autodev.c

来自「An interrest demo of uCGUI base S3C44B0X」· C语言 代码 · 共 284 行 · 第 1/4 页

C
284
字号
/***********************************************************************************************************                                                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 + =
减小字号Ctrl + -
显示快捷键?