PDA

View Full Version : Graphic LCD with ATmega32 in Just 4 line of code !



avinash_g
08-20-2010, 12:06 PM
Hi All,

If you are bored of the Old character LCD switch to Graphic LCDs in NO time!

You can use ProGFX (http://www.ProGFX.org) Embedded Graphics Engine to Write Graphical Application in NO time.

And Above all its free.

Just see the demo

http://extremeelectronics.co.in/avrtutorials/images/HelloGraphiX1.jpg

It was made with just four line of executable code !



************************************************** ******************

Hello World Project Using ProGFX Engine. The application just prints

the text "Hello GraphicX!" at the center of 128x64 Graphical LCD
Module.

For More Information See

http://www.ProGFX.org

ProGFX makes it easy to interface graphical LCD modules with
embedded microcontrollers. Currently Atmel AVR MCUs are supported.

Latter PIC and ARM MCUs will also be supported.

Development Environment : AVR Studio v4.17
Compiler : WinAVR 20090313

Written By
Avinash Gupta
me@avinashgupta.com

************************************************** ******************/

#include <gfx.h>
#include <font.h>
#include <fonts/arial12.h>

void main()
{
//Initialize ProGFX Engine
GFXInit();

//Select a font
GFXSetFont(Arial12);

//Write a simple string at center
GFXCenterText("Hello GraphiX!",GFX_COLOR_BLACK);

//Update the display
GFXUpdate();

}



Features of ProGFX
*Pixel Drawing
*Line Drawing
*Rectangle Drawing
*Filled Rectangle Drawing
*Circle Drawing
*Icon/Image Drawing
*Text Rendering
*Number (Integer Rendering)
*Variable width font support (You can use Any Font available under your Windows PC!)

See gfx.h file fore documentation on the APIs

Have Fun !!!
:)

akshay66
08-20-2010, 05:18 PM
Woh thats just awesome & easy.I will surely try it.

yaniv
08-24-2010, 02:41 PM
Page under construction :| , n e way thnx 4 sharing.

avinash_g
08-24-2010, 07:42 PM
@Yaniv

Page is under construction but Library is Complete !

You can download it from the link in page.

avinash_g
08-27-2010, 01:20 PM
Hi,

This part of tutorial teaches you how to draw pixel,lines,rectangle,circle etc on a Graphical LCDs

http://extremeelectronics.co.in/avr-tutorials/interfacing-graphical-lcd-with-avr-mcu-%E2%80%93-part-iii/

avr-gcc programmer now gets the ease of commercial compilers with built in GLCD libs