Graphics Summer 2012 Graphics Quick Reference Guide www.microchip.
Display Controller Solutions: Graphical Displays Microchip offers varying levels of solutions to drive everything from simple monochrome LCDs to full color WVGA user interfaces.
Graphical Display Configurations PIC24F with Integrated Graphics Controller: Low Cost, Easy to Use PIC32 Low Cost Controllerless Graphics: 32-bit Performance, Flexibility, Integration Core 128 KB RAM Frame Buffer The PIC24F DA family makes it easy and cost-effective to add advanced graphics to your application by eliminating the need for external frame buffers or display controllers.
Graphics Library Display Designer and App Notes FREE Microchip Graphics Library The Microchip Graphics Library is highly modular and is optimized for Microchip’s 16- and 32‑bit microcontrollers. It is easy to use and has an open documented interface for driver or controller support.
Tools for Designing Graphical Displays Microchip Graphics Solutions This table shows the out-of-the-box support for the following development boards and kits. With proper software and hardware configuration compatibility of certain hardware combinations and other PIC devices can be achieved.
Tools for Designing Graphical Displays PIC24FJ256DA210 Development Board (DM240312) Explorer 16 Development Board (DM240001) Multi Media Expansion Board (DM320005) Graphics Display Truly 7" 800 × 480 Board (AC164127-9) PIC32 Starter Kit (DM320001) PIC32 USB Starter Kit II (DM320003-2) Remote Control Demo Board with ZENA Wireless Adapter (DM240315-2) PIC32 Ethernet Starter Kit (DM320004) raphics LCD Controller PICtail G Plus SSD1926 Board (AC164127-5) PIC24E USB Starter Kit (DM240012) raphics C
Graphics Library Quick Reference Guide Microchip Graphics Library Quick Reference Guide Based on Graphics Library Version 4.02. This card contains brief API description. For complete API description, see Graphics Library Help File. Predefined Types Data type for color data. Dependent on the COLOR_DEPTH setting. GFX_COLOR COLOR_DEPTH 8 16 24 Data Type typedef BYTE GFX_COLOR; typedef WORD GFX_COLOR; typedef DWORD GFX_COLOR; Data type for characters. Set by macros in GraphicsConfig.
Graphics Library Quick Reference Guide Primitive Layer (Continued) Primitive Layer Primitive Layer Description Primitive Layer Description void InitGraph() Initialize the display controller, sets the screen to BLACK, sets current color to WHITE, sets the cursor at (0,0), sets the line type to SOLID_LINE and sets the active page and visual page to 0. WORD Circle( SHORT x, SHORT y, SHORT r) Renders a circle using the current set line type, line size and color located at center on x, y with a radius r.
Graphics Library Quick Reference Guide GOL Layer GOL Layer (Continued) GOL Layer Description GOL Layer Description void GOLInit() This function initializes the object layer, primitive layer and display driver layer. Creates a default style scheme with default settings. WORD GOLDraw() Renders all widgets that needs to be rendered on the active list. Sets up the parameters to draw a panel. Use this API to set up GOLPanelDrawTsk() and GOLTwoTonePanelDrawTask().
Graphics Library Quick Reference Guide Widget API AnalogClock Button Graphics Config: USE_ ANALOGCLOCK Graphics Config: USE_BUTTON USE_BUTTON_MULTI_LINE ANALOGCLOCK * AcCreate( WORD ID, SHORT left, SHORT top, SHORT right, SHORT bottom, SHORT hour, SHORT minute, SHORT radius, BOOL sechand, WORD state, void * pBitmap, GOL_SCHEME * pScheme) Chart Chart2 Chart3 Graphics Config: USE_CHART void ChHideSeries( CHART *pObj, WORD seriesNum) XCHAR *ChGetSampleLabel( CHART *pObj) BUTTON * BtnCreate( WORD ID,
Graphics Library Quick Reference Guide Widget API (Continued) Chart4 Round Dial GFX_COLOR *ChGetColorTable( CHART* pObj) Graphics Config: USE_ROUNDDIAL Check Box Digital Meter Edit Box Graphics Config: USE_CHECKBOX Graphics Config: USE_ DIGITALMETER Graphics Config: USE_EDITBOX void *ChGetAxisLabelFont(CHART *pObj) ROUNDDIAL * RdiaCreate( WORD ID, SHORT x, SHORT y, SHORT radius, WORD state, SHORT res, SHORT value, SHORT max, GOL_SCHEME * pScheme) CHECKBOX * CbCreate( WORD ID, SHORT left, SHORT t
Graphics Library Quick Reference Guide Widget API (Continued) Grid Grid2 Group Box List Box List Box2 Graphics Config: USE_BUTTON USE_BUTTON_MULTI_LINE Graphics Config: USE_ GROUPBOX Graphics Config: USE_LISTBOX WORD LbGetVisibleCount(LISTBOX *pObj) GRID * GridCreate( WORD ID, SHORT left, SHORT top, SHORT right, SHORT bottom, WORD state, SHORT numColumns, SHORT numRows, SHORT cellWidth, SHORT cellHeight, GOL_SCHEME * pScheme) void GridMsgDefault( WORD translatedMsg, void * pObj, GOL_MSG * pMsg) G
Graphics Library Quick Reference Guide Widget API (Continued) Meter Picture Control Progress Bar Radio Button Graphics Config: USE_METER Graphics Config: USE_PICTURE Graphics Config: USE_PROGRESSBAR Graphics Config: USE_RADIOBUTTON METER * MtrCreate( WORD ID, SHORT left, SHORT top, SHORT right, SHORT bottom, WORD state, SHORT value, SHORT minValue, SHORT maxValue, void * pTitleFont, void * pValueFont, XCHAR * pText, GOL_SCHEME * pScheme) PICTURE * PictCreate( WORD ID, SHORT left, SHORT top, SHORT r
Graphics Library Quick Reference Guide Widget API (Continued) Slider/Scroll Bar Static Text Text Entry Graphics Config: USE_ STATICTEXT Graphics Config: USE_ TEXTENTRY SLIDER * SldCreate( WORD ID, SHORT left, SHORT top, SHORT right, SHORT bottom, WORD state, WORD range, WORD page, WORD pos, GOL_SCHEME * pScheme) Text Entry2 Window void TeDelKeyMembers(void * pObj) Graphics Config: USE_WINDOW STATICTEXT * StCreate( WORD ID, SHORT left, SHORT top, SHORT right, SHORT bottom, WORD state, XCHAR * pText
Graphics Library Quick Reference Guide Widget API (Continued) Slider/Scroll Bar void SldMsgDefault( WORD translatedMsg, void * pObj, GOL_MSG * pMsg) Static Text Text Entry Text Entry2 Window void TeSpaceChar(TEXTENTRY * pObj) WORD SldTranslateMsg( void * pObj, GOL_MSG * pMsg) typedef struct { OBJ_HEADER hdr; WORD currPos; WORD prevPos; WORD range; WORD pos; WORD page; WORD thWidth; WORD thHeight; } SLIDER; void SldMsgDefault( WORD translatedMsg, void * pObj, GOL_MSG * pMsg) void TeSpaceChar(TEXTENTRY
Support Training Microchip is committed to supporting its customers in developing products faster and more efficiently. We maintain a worldwide network of field applications engineers and technical support ready to provide product and system assistance. In addition, the following service areas are available at www.microchip.com: ■■ Support link provides a way to get questions answered fast: http://support.microchip.com ■■ Sample link offers evaluation samples of any Microchip device: http://sample.