📄 main.c
字号:
//======================================================
// The information contained herein is the exclusive property of
// Sunnnorth Technology Co. And shall not be distributed, reproduced,
// or disclosed in whole in part without prior written permission.
// (C) COPYRIGHT 2003 SUNNORTH TECHNOLOGY CO.
// ALL RIGHTS RESERVED
// The entire notice above must be reproduced on all authorized copies.
//========================================================
//============================================================
// 工程名称:Demo_LCD
// 实现功能:SPLC701B液晶显示驱动程序使用示例
// 日期: 2005/6/18
//============================================================
#include "LCD701_Functions.h" // 包含LCD驱动程序头文件
//======================================================
// 主函数
//======================================================
main()
{
extern unsigned int *RES_FISH_OUT_SA; // Fish.out位图资源的起始地址,在Resource.asm中定义
LCD701_Init(); // 初始化LCD显示器
LCD701_SetTextPos(0,7); // 设置文本显示位置为第0行第7列
LCD701_Print("Lcd显示器"); // 打印字符串"Lcd显示器"
LCD701_Circle(81,33,12,PAINT_HOLLOW); // 以(81,33)为圆心画一个半径12的空心圆
LCD701_Bitmap(RES_FISH_OUT_SA,21,17); // 在坐标(21,17)处显示名为Fish的位图
while(1)
{
CLR_WDT(); // 清看门狗
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -