USB Mouse in KDS
 
Description:
 
A project made in KDS using the accelerometer on a FRDM-MKL46Z256VLL4 board to control a USB mouse input.
A red LED will flash while not connected as a USB mouse, and green LED will flashwhen it is.
SW1 will right click.
SW3 will left click.
 
Sensitivity of the mouse can be changed by altering the HIDM1_Move command in main.c

 
Sections of code taken from:
- http://mcuoneclipse.com/2012/09/21/tutorial-accelerating-the-kl25z-freedom-board/
- http://mcuoneclipse.com/2013/08/01/using-the-frdm-kl25z-as-a-usb-mouse-device/