Ok, next ambitious step...I'd now like to attach these two to the same board:
1.)
http://www.amazon.com/gp/product/B00170JDZU?psc=1&redirect=true&ref_=oh_aui_detailpage_o02_s002.)
http://www.amazon.com/gp/product/B005T83VY0?psc=1&redirect=true&ref_=oh_aui_detailpage_o01_s00In the simplest terms I'd need the joystick to output 4 letters when moved on the axis, like up=a, right=b, down=c, left=d. With this I should be able to map those keys to perform functions like rotating the canvas and whatnot.
The potentiometer strip I'm guessing will be the most complex by far, the eventual goal being a finger slider that zooms in and out. I suspect that will involve some wild code having to detect when the linear position of the finger goes past a certain point and translating that into incremental zoom in/out commands...
Further I'm pretty sure that the keyboard hex as it is now will have to be redone and incorporated with the other code to drive the other devices since you can only upload one hex at a time. Easy AVR is awesomein that it generates the source but I'm unsure if that will be copy/pastable into a different set of code that also drives a joystick and potentiometer. Easy avr source comes out like
const uint8_t PROGMEM LAYERS[NUMBER_OF_LAYERS][NUMBER_OF_ROWS][NUMBER_OF_COLS] = {
{
{ HID_KEYBOARD_SC_A, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
{ HID_KEYBOARD_SC_B, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
{ HID_KEYBOARD_SC_C, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
{ HID_KEYBOARD_SC_D, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, },
}, then a ton of other zero'd arrays, etc etc etc
I have some specific questions before launching into this one.
1.) I suppose first and foremost, is this feasable? Can the teensy to handle all these at once like I'm thinking?
2.) The connections of the joystick look like this:
https://www.adafruit.com/images/970x728/444-02.jpg Knowing that, would I wire vcc and ground to a vcc and ground on the teensy then the leftright/updown to standard slots?
3.) Can I incorporate the EasyAvr generated source by itself (like copy the code and paste into the rest of the program that drives joystick and fingerstrip and it's done) or will the fact that it defined a keyboard matrix require that the other inputs need to be on the same matrix?
4.) Regarding the potentiometer, scrolling the mouse wheel or alt+mouse will perform metered zooming for most art programs. That seems like the simplest path for the potentiometer to use. Does that sound logical? Would a smooth up and down input be just as obtainable?
5.) This would be pretty ambitious but since the joystick should be capable of continuous input do you guys think it could be used to smoothly pan around say a zoomed in canvas or would it be best as one right sensed input = 10% percentage of the view-port moved right?
I think with at least a few of those questions answered I can move forward in some fashion. I really appreciate the help as always. thanks for introducing me to teensy boards too!