电子产业一站式赋能平台

PCB联盟网

搜索
查看: 2304|回复: 1
收起左侧

单片机C语言实例-201-SD卡

[复制链接]
发表于 2022-2-22 16:38:32 | 显示全部楼层 |阅读模式
单片机C语言实例-201-SD卡

/*
================================================================================
File Name : GUI_Basic.c
Author    : LiYOng
Date      : 2008-12-12 15:51
Version   : 1.0
Decription: This file contains some basic functions for GUI, It need the LCD
            Drive functions
================================================================================
*/
#include "GUI_Basic.H"
#include "GUI_Type.H"
#include "fontlib.h"
/*
================================================================================
Function     : GUI_DrawRectangle( )
Description  : Draw a rectangle
Input        : -pRect, point to a rectangle structure
output       : None
================================================================================
*/
void GUI_DrawRectangle( RECT* pRect )
{
        LINE line;

        line.xs = pRect->xs;
        line.xe = pRect->xe;
        line.ys = pRect->ys;
        line.ye = pRect->ys;
        line.Color = pRect->Color;
        LCDDrawHRLine( &line );

        line.xe = pRect->xs;
        line.ye = pRect->ye;
        LCDDrawHRLine( &line );

        line.xs = pRect->xe;
        line.ys = pRect->ye;
        LCDDrawHRLine( &line );

        line.xe = pRect->xe;
        line.ye = pRect->ys;
        LCDDrawHRLine( &line );
}


更多详情参考附件文档
+08:00C401联盟网1924.png
游客,如果您要查看本帖隐藏内容请回复

回复

使用道具 举报

9

主题

1122

帖子

8964

积分

高级会员

Rank: 5Rank: 5

积分
8964
发表于 2023-10-11 11:49:42 | 显示全部楼层
谢谢楼主分享  学习一下
回复 支持 反对

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


联系客服 关注微信 下载APP 返回顶部 返回列表