📄 glcd.h
字号:
/*! \file glcd.h \brief Graphic LCD API functions. */
//*****************************************************************************
//
// File Name : 'glcd.h'
// Title : Graphic LCD API functions
// Author : Pascal Stang - Copyright (C) 2002
// Date : 5/30/2002
// Revised : 5/30/2002
// Version : 0.5
// Target MCU : Atmel AVR
// Editor Tabs : 4
//
// NOTE: This code is currently below version 1.0, and therefore is considered
// to be lacking in some functionality or documentation, or may not be fully
// tested. Nonetheless, you can expect most functions to work.
//
// This code is distributed under the GNU Public License
// which can be found at http://www.gnu.org/licenses/gpl.txt
//
//*****************************************************************************
#ifndef GLCD_H
#define GLCD_H
#include <avr/io.h>
#include "../global.h"
#define LINE1 0
#define LINE2 1
#define LINE3 2
#define LINE4 3
#define LINE5 4
#define LINE6 5
#define LINE7 6
#define LINE8 7
#define ON 1
#define OFF 0
#define NORMAL 1 // 焊烹 臂揪
#define INVERSE 0 // 开惑 臂揪
// ***** Public Functions *****
//------------------------------------------------------------------------//
// ** 弊府扁 包访窃荐 **
// set dot
void glcdSetDot(U8 x, U8 y);
// clear dot
void glcdClearDot(U8 x, U8 y);
// draw line
void glcdLine(U8 x1, U8 y1, U8 x2, U8 y2);
// draw rectangle
void glcdRectangle(U8 x1, U8 y1, U8 x2, U8 y2);
// draw circle
void glcdCircle(U8 xcenter, U8 ycenter, U8 radius);
//------------------------------------------------------------------------//
// ** 康巩 免仿 包访窃荐 **
// 泅犁 困摹俊 茄臂磊(5x7) 静扁
void glcdWriteChar(U8 c);
// 5x7 巩磊凯 静扁
void glcdPutStr(U8 *data);
// 8x16 巩磊凯 静扁
// attr篮 焊烹(NORMAL), 开惑臂揪(INVERSE) 急琶
void glcdPutEngChar(U8 c, U8 attr);
//------------------------------------------------------------------------//
// ** 茄臂 免仿 包访窃荐 **
// 迄飘抛捞喉阑 曼炼窍咯 16x16 茄臂 1磊甫 父甸绢 晨
void glcdGetFont(U16 c, U8 *fontBuffer);
// 16x16 茄臂 巩磊凯 静扁
// attr篮 焊烹(NORMAL), 开惑臂揪(INVERSE) 急琶
void glcdPutKorChar(U16 c, U8 attr);
// str俊 蝶扼 康巩, 茄臂 急琶窍咯 巩磊凯 免仿
void glcdPutString(U8 *str, U8 attr);
//------------------------------------------------------------------------//
// ** 箭磊 免仿 包访窃荐 **
// 4bit 16柳荐(hex)肺 免仿
void glcdPutU04Hex(U8 data);
// 1byte(8bit) 16柳荐(hex)肺 免仿
void glcdPutU8Hex(U8 data);
// 2byte(16bit) 16柳荐(hex)肺 免仿
void glcdPutU16Hex(U16 data);
// 4byte(32bit) 16柳荐(hex)肺 免仿
void glcdPutU32Hex(U32 data);
// 4byte(32bit) 绞柳荐(Dec)肺 免仿(迄飘 5x7)
// digit绰 磊府荐
void glcdPutU32Dec(U32 data, U8 digit);
// 4byte(32bit) 绞柳荐(Dec)肺 免仿(迄飘 8x16)
// digit绰 磊府荐
// attr篮 焊烹(NORMAL), 开惑臂揪(INVERSE) 急琶
void glcdPutU32Dec16(U32 data, U8 digit, U8 attr);
/* 瘤陛 荤侩窍瘤 臼栏骨肺 林籍贸府
//------------------------------------------------------------------------//
// ** 酒捞能 免仿 包访窃荐 **
// 16x16 icon 免仿
void glcdWriteIcon16(U8 icon);
// 24x16 icon 免仿
void glcdWriteIcon24(U8 icon);
*/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -