CodeVisionAVR

High Performance ANSI C Compiler
for Atmel AVR microcontrollers

X-Graph

Rabbit SBC - Atmel AVR XMega SBC - Arduino Shields
Touchscreen LCD - GPRS - MP3 - WiFi - Ethernet


XG8000 4.3" LCD-A Arduino Shield

91.00€


100 Units in Stock
Quantity Discounts:
+10 pcs = -3%
+30 pcs = -6%
+50 pcs = -8%
+100 pcs = -11%
(Rewarded at Checkout)
The XG8000 adds a 4.3" 480x272 LCD and touchscreen to your Arduino cpu board. This shield includes a SDCard socket to store all fonts and images required to build a nice looking graphic user interface for your projects.

The X-Graph graphic processor handles are LCD graphic functions. NO memory on your Arduino modules is used to store graphic functions. The processor is a ATxmega processor and includes functions for graphic primitives and widgets (widgets available soon with a firmware upgrade).

Design idea: add an X-Graph LCD Shield to the XG8300 MP3 Shield.

  • 4.3" 480x272 LCD with touchscreen
  • 64k colors
  • Powerfull X-Graph Graphic Processor
  • Graphic primitives drawing: dots, lines, boxes, circles, polygones, fonts, ...
  • Widget drawing: buttons, pull-down boxes, menus, progressbars, ...
    (available with next firmware release)
  • 3.3V power supply
  • microSDCard socket to store fonts & images
  • SPI bus compatible
  • LCD Arduino library included
  • X-Graph Arduino stackable connectors. Stack as many X-Graph Arduino Shields as you need.
  • Firmware of X-Graph graphic processor is in-circuit upgradable
Arduino cpu board compatibility:
The XG8000 uses the Atmel AVR hardware SPI bus which is routed on most Arduino CPU boards on pins 11, 12 and 13.

With the new object LCD (part of the included library) your Sketch becomes a full featured graphic engine.

The X-Graph Arduino LCD Library communicates with the XG1000 Graphic Accelerator via the Arduino SPI bus and offers an extremely fast and real-time graphic response.

The library includes commands for fonts, widgets and graphic primitives (dots, lines, boxes, circles, polygones, ...). You can use any Windows font and use graphic files stored on the sdcard (LCD Vision required).

Touchscreen support is of course also included and is fully supported by the widgets.

The Arduino LCD object supports (current release, new commands will be added soon):
  • on: turns display on
  • off: turns display off
  • backlight: sets backlight intensity
  • version: returns library version number
  • upgrade: upgrade the firmware of the XG1000 Graphic Accelerator
  • setcolor: set the current foreground color
  • getcolor: get the current foreground color
  • setbkcolor: set the current background color
  • getbkcolor: get the current background color
  • settpcolor: set the transparency color for image display in transparent mode
  • gettpcolor: get the current transparency color for image display in transparent mode
  • getmaxcolor: get the highest color value for a pixel
  • getmaxx: get the maximum X horizontal coordinate value
  • getmaxy: get the maximum Y vertical coordinate value
  • clear: celars the display to the current background color
  • putpixel: sets a pixel to a color
  • setpixel: sets a pixel to the current foreground color
  • clrpixel: sets a pixel to the current background color
  • getpixel: get the current color of a pixel
  • moveto: moves the current pixel plot position
  • moverrel: moves relative the current pixel plot position
  • getx: get the current pixel plot position horizontal coordinate
  • gety: get the current pixel plot position vertical coordinate
  • setfont: select the current font from a set of preloaded fonts
  • setfontx: select the current font from a sdcard font
  • settextjustify: sets the horizontal and vertical text justification values
  • charwidth: gets the width of a character for the current font
  • textheight: gets the text height of the current font
  • textwidth: gets the text width of a string
  • textwidthe: gets the text width of a stored string
  • transparent: enabled or disables transparency
  • putcharxy: displays a single character
  • putchar: displays a single character at the current plot position
  • outtextxy: display a string
  • outtextxye: display a stored string
  • outtextxy: display a string at the current plot position
  • outtextxye: display a stored string at the current plot position
  • imagesize: gets the memory size needed to store a bitmap image
  • putimage: displays a bitmap image stored in RAM
  • putimagee: displays a bitmap image stored in non volatile memory
  • putimagex: displays a bitmap image stored on the sdcard
  • getimage: saves a bitmap image to RAM
  • getimagee: saves a bitmap image to non volatile memory
  • getimagex: saves a bitmap image to the sdcard
  • setlinethick: sets the current line thickness
  • getlinethick: gets the current line thickness
  • getlinepattern: gets the current line bit pattern
  • line: draws a line
  • lineto: draws a line from the current plot position
  • linerel: draws a line relative from the current plot position
  • hline: draws a horizontal line
  • hlineto: draws a horizontal line from the current plot position
  • hlinerel: draws a horizontal line relative from the current plot position
  • vline: draws a vertical line
  • vlineto: draws a vertical line from the current plot position
  • vlinerel: draws a vertical line relative from the current plot position
  • rectangle: draws a rectangle
  • rectrel: draws a rectangle using relative coordinates
  • rectround: draws a rectangle with rounded corners
  • triangle: draws a triangle
  • filltriangle: draws a filled triangle
  • poly: draws a polygone
  • circle: draws a circle
  • arc: draws a arc of circle
  • getarccoords: reads a arcs coordinates
  • setfill: sets a fill pattern
  • setfille: sets a fill pattern from non-volatile memory
  • setfillcolor: sets the fill color
  • getfillcolor: best the fill color
  • bar: draws a filled rectangle
  • barrel: draws a filled rectangle relative
  • floodfill: fills a polygon
  • fillcircle: fills circle
  • pieslice: draws and fills a pieslice
  • bullet: draws a bullet
  • ellipse: draws an ellipse
  • fileellipse: draws a filled ellipse
The list of widgets (several commands are included to support widgets):
  • Button
  • Panel
  • Slider
  • Meter
  • Checkbox
  • Radio Button
  • Curve
#include <lcd.h>

/*
 Run a test on the LCD Shield
 
 
 � Copyright DELCOMp 2011-2012, All Rights Reserved
 DELCOMp bvba, Technologielaan 3, B-3001 Leuven, Belgium
 http://www.xgraph.be �

 Change History:
 Date: 1.0, 22 Mar 2012
 
 This example code is in the public domain.

 XG8000/XG8400 LCD Shield functions demonstrated:
 - version: read version
*/

#include <SD.h>
#include <lcd.h>

// The LCD Shield uses 1 SPI CS pins:
const int LCDChipSelect = 8;
// Note that even if it's not used as the CS pin, the hardware
// CS pin (10 on most Arduino boards, 53 on the Mega) must be
// left as an output or the SD/MP3 library functions will not work.

// Global vars
unsigned long time;
byte state;

void setup()
{
  // Setup the serial monitor
  Serial.begin(9600);

  // Setup the LCD Shield
  Serial.print("Initializing LCD shield... version: ");
  Serial.println(LCD.begin(LCDChipSelect), HEX);

  // Vars for demo only
  time = millis() + 5000;
  state = 0; 
}

void loop()
{
static int i;
int j;
static byte k;

  // Demo mode
  // Every 5 seconds switch to another lcd demo using
  // all the available LCD functionality in the LCD library.
  if (time < millis()) {
    time = millis() + 1000;
    switch (state) {
      case 0:  
        LCD.on();                        // LCD On
        LCD.clear();                     // Clear LCD
        LCD.backlight(255);              // Backlight max.
        Serial.print("Resolution: ");    // Get resolution
        Serial.print(LCD.getmaxx()+1);
        Serial.print(" x ");
        Serial.println(LCD.getmaxy()+1);
        state = 1;
        break;
      case 1:
        LCD.setbgcolor(0xF97F);          // Draw background
        LCD.clear();
        for (i=0; i<100; i+=3) 
          LCD.putpixel(i, 50, 0xffff);   // Draw pixels
        state = 1;
        break;
      case 2:
        state = 0;
        break;
    }
  }
}



  • Model: XG8000
  • 100 Units in Stock
  • Manufactured by: DELCOMp


Copyright © 2017 CodeVisionAVR and X-Graph.