Greetings! I just got here after getting my Teensy 3.2 working with Arduino on my Mac OS X. It's running one of the examples sketches in the Examples>Teensy>USB_Joystick>Complete.

A few questions.

First, it's doing pretty much what I want, except the analog channels are only at 10-bit resolution and I need 12 bits. I am guessing I need to modify the descriptor file, but I probably need to modify some other structures and code that Arduino conveniently hides. Can someone assist with some direction on how to find the files I need to modify and point me in the right direction?

Secondly, this program needs to run on an application specific non-Teensy board, but using the same processor (MK20DX256VLH7). My question is about pin assignments. It looks like the Arm is pretty flexible with reassigning pins (with some obvious limits). I'm okay with the 13 digital inputs currently used for the joystick software, but I need to add 15 more! Worst case I can get away with trading off 3 A/D channels if I have to, but the question is, what unused pins can I assign as inputs?

I'm only using 3 analog channel and the unattached pins in the drawing are what is not currently being used...


Click image for larger version. 

Name:	MK20DX256.jpeg 
Views:	53 
Size:	108.5 KB 
ID:	20101