|
Post by Frisbone on Jul 23, 2013 6:02:29 GMT -5
Instead of using external pull up/down resistors for each button/switch into the RPi I'm going to use the internal pull-ups.
So, one thing to keep in mind here is logic reversal. A pull-up means that the switch is active when it is LOW (zero volts, logic zero). Code currently assumes logic one is active.
Will have to take out direct control from within the program and leave pin configuration up to a script (RPi only). Optionally docs say I can shell out to do it - might consider that after I've tested the script approach.
So the basic wiring approach for digital inputs:
- If going to the RPi, will wire one end of the switch to ground - the other to the input. - If passing through - wires will be soldered to each side of the joystick pad and then extended to the actual switch.
Anything wired to the joystick should go through a connector - this will make dis-assembly easier. Will need crimping connectors.
|
|
|
Post by Frisbone on Aug 24, 2013 12:05:24 GMT -5
Here is the final color mapping of the female header wires for all of the digital inputs:
RB==>orange (LIDX) B==>brown (LRING) LB==>purple (LTHMB) X==>grey (RLOD) [Trig]==>white (TRIG) RSTK==>yellow (RMID) Y==>blue (RRING) [config]==>red [mode]==>green
|
|