资源简介
从这个历程来看,应该可以解决很多新手的疑惑。包括 如何驱动数码管,LCD的显示驱动,显示一幅图片,各种扫描方式等等
代码片段和文件信息
/*
*********************************************************************************************************
* 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 : GUIArcAA.C
Purpose : Draw Arc routines with Antialiasing
---------------------------END-OF-HEADER------------------------------
*/
#include
#include
#include
#include
#include “GUI_Protected.h“
#if GUI_SUPPORT_AA
/*********************************************************************
*
* Static code
*
**********************************************************************
*/
/*********************************************************************
*
* _DrawArcAA
*/
static void _DrawArcAA(int x0 int y0 int rx int ry int a0 int a1) {
int PenSizePrev = GUI_GetPenSize();
int PenSize_AA;
int Factor;
Factor = GUI_Context.AA_HiResEnable ? 1 : GUI_Context.AA_Factor;
/* Convert into Hires coordinates (if not already done) */
x0 *= Factor;
y0 *= Factor;
rx *= Factor;
ry *= Factor;
PenSize_AA = PenSizePrev * GUI_Context.AA_Factor;
GUI_AA_Init_HiRes(x0 - rx - PenSize_AA x0 + rx + PenSize_AA);
GUI_SetPenSize(PenSize_AA);
GL_DrawArc(x0 y0 rx rya0a1);
GUI_SetPenSize(PenSizePrev); /* restore former pen size */
/* Cleanup */
GUI_AA_Exit();
}
/*********************************************************************
*
* Public code
*
**********************************************************************
*/
/*********************************************************************
*
* GUI_AA_DrawArc
*/
void GUI_AA_DrawArc(int x0 int y0 int rx int ry int a0 int a1) {
GUI_LOCK();
#if (GUI_WINSUPPORT)
WM_ADDORG_AA(x0y0);
WM_ITERATE_START(NULL) {
#endif
_DrawArcAA( x0 y0 rx ry a0 a1);
#if (GUI_WINSUPPORT)
} WM_ITERATE_END();
#endif
GUI_UNLOCK();
}
#else /* Avoid problems with empty object modules */
void GUIAAArc_C(void);
void GUIAAArc_C(void) {}
#endif /* GUI_SUPPORT_AA */
/*************************** End of file ****************************/
相关资源
- 带FIFO模块的OV7670的STM32测试程序
- STM32F103ZET6数据手册中文
- STM32的SIM900A的GPRS数据传输
- stm32读取正交编码器例程
- STM32 PWM实现DAC
- STM32F105RC_U盘升级bootloader.7z
- 基于STM32F407的漏电检测系统
- STM32SG90舵机
- STM32 ModBus RTU 从机程序
- STM32的TFT显示,使用Font_libs字库
- LwIP应用开发实战指南—基于野火+ST
- STM32温湿度传感器DHT11代码,通过串口
- 一个STM32的USB鼠标例程
- STM32+OV7725照相机源代码.rar
- STM32+AD7606+W5500
- STM32采样电压值
- STM32 STM32F103C8T6 片内FLASH读写例程
- STM32 实现DMX512数据接收
- stm32 led程序
- STM32F103RCT6单片机在串口屏上打印正弦
- 基于proteus 的 STM32 采集DHT11 仿真 +
- STM32接入OneNET代码
- 毕业设计智能小车的制作蓝牙控制,
- 基于正点原子stm32mini开发板的触摸屏
- STM32F4之dacdma输出正弦波加adcdma多通道
- stm32F429多通道ADC+串口30
- stm32-超声波避障程序案例
- stm32 mpu6050 DMP 成功
- ADS1256-MDK5-STM32F103C8.rar
- STM32F407ZG接入ONENET平台代码
评论
共有 条评论