sGUI
V1.0
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Modules
Pages
geometry.c
Explains how to draw a circles, rectangular and lines.
/*
* This example shows how to draw a circles, rectangular and lines.
*/
#include <
lcd.h
>
int
main(
void
) {
LCD_Init
();
LCD_SetFont
(&font_8x16);
LCD_DisplayStringCenterLine
(1,
"Geometry Example"
);
LCD_DrawRect
(250, 50, 50, 50,
GUI_COLOR_GREEN
);
LCD_DrawRectF
(265, 65, 20, 20,
GUI_COLOR_WHITE
);
LCD_DrawLine
(200, 100, 250, 200,
GUI_COLOR_RED
);
LCD_DrawRect
( 98, 98, 5, 5,
GUI_COLOR_GREEN
);
LCD_DrawCircle
(100, 100, 50,
GUI_COLOR_LIGHT_GRAY
);
LCD_DrawCircle
(100, 100, 20,
GUI_COLOR_LIGHT_GRAY
);
for
(;;) {
}
return
0;
}
Generated on Mon Feb 2 2015 11:10:23 for sGUI by
1.8.8