This example demonstrates a simple calculator on the display of the mXT143E Xplained, using the Widget Toolkit.
The widget library API can be found here, while the graphics service API can be found here. The maXTouch API can be found here.
This example has been tested with the mXT143E Xplained on the following kits:
This example application shows how widgets can be used to create a simple calculator, allowing the user to perform calculations by touching buttons on the display.
To perform a calculation, the user must first enter an operand (number), then an arithmetic operator ("+", "-", "*", "/") followed by the second operand. The calculation is performed when the "="-button is pressed.
Relevant module dependencies for this application are:
This software was written for the GNU GCC and IAR for AVR. Other compilers may or may not work.
For further information, visit Microchip.