Quote:
|
Originally Posted by ghhs_1527
...i have no idea where to put the 2 on-off switches
|
You've used up all four of the switch inputs on both ports. The only thing left is to use analog inputs!
Connect the switches and some resistors in the following magical arrangement on port 3:
Code:
pin 1 ----+---- switch 1 ----+---- /\/\/\/ ----+---- /\/\/\/ ---- pin 11
| | 20 k | 33 k
+---- /\/\/\/ -----+---- switch 2 ---|
10 k
Then read the value of p3_aux to see which combination of switches yields what number. That's very much like the way the white joystick's "hat" button works.