A basic graphics package for the LPC4088 Display Module.

Dependents:   lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI lpc4088_displaymodule_fs_aid ... more

Fork of DMBasicGUI by EmbeddedArtists AB

Embed: (wiki syntax)

« Back to documentation index

AppTouchCalibration Class Reference

AppTouchCalibration Class Reference

An App example guiding the user through the steps needed to (re)calibrate the touch controller. More...

#include <AppTouchCalibration.h>

Inherits App.

Public Member Functions

virtual bool setup ()
 Prepare the App before it is started.
virtual void runToCompletion ()
 Runs the App to completion.
virtual bool teardown ()
 Cleanup.
void addResource (Resources id, Resource *res)
 Specifies the resource to use.

Detailed Description

An App example guiding the user through the steps needed to (re)calibrate the touch controller.

After the user presses each of the four corner for calibration the program turns into a very simple drawing application until the Done button is pressed.

The purpose of this example is to show how to (re)calibrate the touch controller if that is ever needed.

Definition at line 35 of file AppTouchCalibration.h.


Member Function Documentation

void addResource ( Resources  id,
Resource res 
)

Specifies the resource to use.

Adds a resource for a specific id. This allows the user program to select e.g. which image to use and if it should be loaded from a file or an array.

Parameters:
idthe identifier
resthe resource

Definition at line 232 of file AppTouchCalibration.cpp.

void runToCompletion (  ) [virtual]

Runs the App to completion.

This function should not return until the App has finished.

Implements App.

Definition at line 163 of file AppTouchCalibration.cpp.

bool setup (  ) [virtual]

Prepare the App before it is started.

This function can be implemented to allocate memory, load startup images or other time consuming preparations.

The return value is to let the caller now if the application can be started or not.

Parameters:
xthe touched x coordinate
ythe touched y coordinate
pressedtrue if the user pressed the display
Returns:
true if the app can be started false if the setup failed

Reimplemented from App.

Definition at line 152 of file AppTouchCalibration.cpp.

bool teardown (  ) [virtual]

Cleanup.

Implement to free up the memory allocated in setup().

Returns:
true if the teardown finished successfully false if the teardown failed

Reimplemented from App.

Definition at line 211 of file AppTouchCalibration.cpp.