Example Calibrate

The main goal of this example is to show how to run the touchscreen calibration test via software rather than going through the hardware (DIP switch 4) to run the same exact test. See the Hardware Specs for instructions on running the touchscreen calibration test via hardware.

The href function Amulet:calibrate(), when invoked, launchs directly to the touchscreen calibration routine. When the touchscreen has been successfully calibrated, the calibration routine returns to the calling page. Amulet:calibrate() can be used in any Control Object/Widgets' href attribute. In this example, we are using anchors around an image and around text to invoke the calibration routine. Here is a snapshot of what the html page looks like in a "WYSIWYG" tool:


Figure 1.

To link an image to run the touchscreen calibration test when clicked upon, the following anchor is attached to the image:

<A href="Amulet:calibrate()"><img source="../Images/target.gif" WIDTH="92" HEIGHT="84"></A>

To link text to run the touchscreen calibration test when clicked upon, the following anchor is attached to the Calibrate text:

<A href="Amulet:calibrate()">Calibrate</A>

Once the touchscreen calibration test has been completed, the Amulet module returns to the calling page.

NOTES:



Amulet HTMLCompiler,
Copyright © 2000-2004 by
Amulet Technologies, LLC

Back to Welcome - Contact Amulet - Amulet Home