Download library here.

Check the tutorial page for an explanation about a graphic LCD.
 
There are a few LCD's official supported for this library.
The 2.4 and 2.8 inch LCD screens from Iteadstudio can be used to: 2.4 inch and 2.8 inch.
Adafruit has also a LCD shield with the ILI9325 display controller 2.8 inch.

We recommend the one of the 2.8 inch LCD's because code optimisation can not be used for the 2.4 inch LCD.

Warning: It is highly recommended to use an external power supply or two USB cables. Else the LCD screen might not work or the microSD card may fail. If the LCD works but it can't load pictures from a MicroSD card please try it again with an external power supply.


LCD

#include <string.h>
#include <stdlib.h>
#include "lpc17xx.h"
#include "lpc_types.h"
#include "GPIO.h"
#include "timer.h"
#include "colors.h"
#include "drawing.h"
#include "veramonobold11.h"
#include "bmp.h"
#include "init.h"

int main(void)
{
    init_in_main();
    lcdInit();
    drawFill(COLOR_RED);
    drawCircleFilled(40, 40, 20, COLOR_GREEN);
    drawCircleFilled(90, 40, 20, COLOR_BLUE);
    drawCircleFilled(140, 40, 20, COLOR_YELLOW);
    drawCircleFilled(190, 40, 20, COLOR_WHITE);

    drawRectangleFilled(50, 80, 200, 130, COLOR_BLACK);
    drawButton(50, 150, 150, 25, &bitstreamVeraSansMonoBold11ptFontInfo, 11, "Hello world", FALSE);
    drawString(35, 200, COLOR_BLACK, &bitstreamVeraSansMonoBold11ptFontInfo, "Color LCD example");

    while(1)
    {

        drawCircleFilled(120, 265, 40, COLOR_GREEN);
        drawCircleFilled(120, 265, 40, COLOR_BLUE);
        drawCircleFilled(120, 265, 40, COLOR_YELLOW);
        drawCircleFilled(120, 265, 40, COLOR_MAGENTA);
    }
}


Copyright 2011. Joomla 1.7 templates - Joomla template maker. The Simplecortex is developed by BRC-Electronics