Using the FRDM-KL46 Board as a USB Mouse in KDS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using the FRDM-KL46 Board as a USB Mouse in KDS

Using the FRDM-KL46 Board as a USB Mouse in KDS

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 flash when 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/

Labels (1)
Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1128458%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUsing%20the%20FRDM-KL46%20Board%20as%20a%20USB%20Mouse%20in%20KDS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1128458%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EUSB%20Mouse%20in%20KDS%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDescription%3A%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20project%20made%20in%20KDS%20using%20the%20accelerometer%20on%20a%20FRDM-MKL46Z256VLL4%20board%20to%20control%20a%20USB%20mouse%20input.%3C%2FP%3E%3CP%3EA%20red%20LED%20will%20flash%20while%20not%20connected%20as%20a%20USB%20mouse%2C%20and%20green%20LED%20will%20flash%20when%20it%20is.%3C%2FP%3E%3CP%3ESW1%20will%20right%20click.%3C%2FP%3E%3CP%3ESW3%20will%20left%20click.%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESensitivity%20of%20the%20mouse%20can%20be%20changed%20by%20altering%20the%20HIDM1_Move%20command%20in%20main.c%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESections%20of%20code%20taken%20from%3A%3C%2FP%3E%3CP%3E%3CSPAN%3E-%20%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-external-small%22%20href%3D%22http%3A%2F%2Fmcuoneclipse.com%2F2012%2F09%2F21%2Ftutorial-accelerating-the-kl25z-freedom-board%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fmcuoneclipse.com%2F2012%2F09%2F21%2Ftutorial-accelerating-the-kl25z-freedom-board%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E-%20%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-external-small%22%20href%3D%22http%3A%2F%2Fmcuoneclipse.com%2F2013%2F08%2F01%2Fusing-the-frdm-kl25z-as-a-usb-mouse-device%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fmcuoneclipse.com%2F2013%2F08%2F01%2Fusing-the-frdm-kl25z-as-a-usb-mouse-device%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1128458%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EUSB%20Mouse%20in%20KDS%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDescription%3A%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20project%20made%20in%20KDS%20using%20the%20accelerometer%20on%20a%20FRDM-MKL46Z256VLL4%20board%20to%20control%20a%20USB%20mouse%20input.%3C%2FP%3E%3CP%3EA%20red%20LED%20will%20flash%20while%20not%20connected%20as%20a%20USB%20mouse%2C%20and%20green%20LED%20will%20flash%20when%20it%20is.%3C%2FP%3E%3CP%3ESW1%20will%20right%20click.%3C%2FP%3E%3CP%3ESW3%20will%20left%20click.%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESensitivity%20of%20the%20mouse%20can%20be%20changed%20by%20altering%20the%20HIDM1_Move%20command%20in%20main.c%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESections%20of%20code%20taken%20from%3A%3C%2FP%3E%3CP%3E%3CSPAN%3E-%20%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-external-small%22%20href%3D%22http%3A%2F%2Fmcuoneclipse.com%2F2012%2F09%2F21%2Ftutorial-accelerating-the-kl25z-freedom-board%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fmcuoneclipse.com%2F2012%2F09%2F21%2Ftutorial-accelerating-the-kl25z-freedom-board%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E-%20%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-external-small%22%20href%3D%22http%3A%2F%2Fmcuoneclipse.com%2F2013%2F08%2F01%2Fusing-the-frdm-kl25z-as-a-usb-mouse-device%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fmcuoneclipse.com%2F2013%2F08%2F01%2Fusing-the-frdm-kl25z-as-a-usb-mouse-device%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1128458%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎07-03-2014 09:01 AM
Updated by: