|
Re: LED drivers on OI
As far as the pin outs go: You have +5V and ground pins, analog inputs, and digital inputs on all four ports. The analog inputs are mapped on the kit's joysticks to the y axis, x axis, and the wheel on top (I think the last one is unused). The digital inputs are for the trigger, the hat (on the left side), and the two auxiliary switches on either side of the wheel.
After these standard pins, ports 1 and 3 have an additional four pins each that are used for the leds - between the two of them, those 8 leds mirror what I assume are Pwm1_red through Relay2_green. Ports 2 and 4 have, instead of led drivers, four pins that act exactly the same as ports 1 and 3's four standard digital inputs. That is, they are connected in the same way as any other digital input, but they are not unique, they overlap with the buttons connected to the other ports. If you already have a joystick plugged into every port then these pins are redundant. Activating one of these pins on joystick 2 would set one of the p1_sw_**** variables true, not any of the p2_sw_**** ones.
|