Microchip | The Embedded Control Solutions Company Register Login
Browse All
Infortech(CHINA)
 3 Code Snippets

PIC32 Graphics Design

Infortech(CHINA)

This project contains follow content: Touch Screen Calibration; LED Roll Speed Controll; (use DMA function) Colock Show and Setup; Accelebrator Show and Temperature Show.

About this Code Example

int main(void)
{
    GOL_MSG msg;                    // GOL message structure to interact with GOL
   
    InitializeBoard();              
    HardwareButtonInit();
    Timer5Init();

   // Accelerometer Initialization
    accel_init.sourceClock  = GetPeripheralClock();
    accel_init.dataRate     = 10000;
    ACCELInitialize(&accel_init, ACCEL_BMA150_RANGE_2G);

    TouchCalibration();
    TouchStoreCalibration();

    // Load touch screen calibration parameters from memory
    TouchLoadCalibration();
   
    GDDDemoCreateFirstScreen();
...................................
.....................................................
/////////////////////////////////////////////////////////////////////////////
// Function: WORD GOLMsgCallback(WORD objMsg, OBJ_HEADER* pObj, GOL_MSG* pMsg)
// Input: objMsg - translated message for the object,
//        pObj - pointer to the object,
//        pMsg - pointer to the non-translated, raw GOL message
// Output: if the function returns non-zero the message will be processed by default
// Overview: it's a user defined function. GOLMsg() function calls it each

//           time the valid message for the object received
/////////////////////////////////////////////////////////////////////////////
WORD GOLMsgCallback(WORD objMsg, OBJ_HEADER *pObj, GOL_MSG *pMsg)
{
    WORD    objectID;

    objectID = GetObjID(pObj);

    GDDDemoGOLMsgCallback(objMsg, pObj, pMsg);
   
    // Add additional code here...


    return (1);
}

Categories

Release History

  • Oct 25, 2013

    Version: 1.0.0

    Source code !

Download Contact the Developer

*Required Fields

  • Current Version:1.0.0
  • Created:Oct 25, 2013
  • Updated:Feb 26, 2015
  • Downloads:3337
  • MPLAB Version:MPLAB XIDE v1.90
  • C Compiler:XC32 v1.20
  • Development Tools:USB START KIT II, Multimedia Expansion Board
  • Supported Devices:PIC32

Corporate News

Resources

Stay Connected

Stay up to date with the latest news from Microchip Technology.