Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
USB Device example using the mXT143E Xplained kit as mouse Documentation

Introduction

This example will create a HID class USB mouse on the host computer and emulate a trackpad on the mXT143E Xplained.

Main files:

maXTouch low level component API

The maXTouch component API can be found here, while the graphics service API can be found here.

Device Info

This example has been tested with the mXT143E Xplained on the following kits:

  • UC3-A3 Xplained
  • XMEGA-A3BU Xplained
  • SAM4S Xplained

Description of the example

When the Xplained board is connected to a host computer supporting the USB HID class, it will create a mouse device. The mXT143E Xplained's display will then function as a trackpad, with visualization of the touch's trail.

The first finger on the trackpad will move the cursor and the second finger will emulate a left or right click, depending on whether the second finger touches on the left or right side of the first finger.

Compilation Info

This software was written for the GNU GCC and IAR for AVR. Other compilers may or may not work.

Contact Information

For further information, visit Microchip.