Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Monochrome graphic library example for Xplain Documentation

Introduction

This simple example shows how to use the XPM USART Screendump functions for dumping the LCD screen in XPM file format trough the USART.

Main files:

XPM Screen dump API

The screen dump service API can be found here.

Device Info

All AVR devices with a USART can be used. There is no need for the physical LCD to be present to use this function. As this function will only rely on a framebuffer. If using the ST7565R LCD in serial mode a local framebuffer will always be created due to that one can not read data back from the LCD.

Description of the example

The phantom display is initialized and different gfx functions are used to produce an "image" which is written to the LCD screen (if present) and at the end the entire screen buffer is dumped trough the USART using the XPM image file format.

Compilation Info

This software was written for the GNU GCC and IAR for AVR. Other compilers may or may not work.

Contact Information

For further information, visit Microchip.