Quote:
Originally Posted by joesmomh00haha
:Also: to add more inputs we tried using "wheel" but it keeps going until we press the "wheel" then it will go the right direction until we let go. 
|
wheel is analog. You'll have to do something like:
#define p1_sw_wheel ((p1_wheel > 127) ? 1 : 0)
This means that if p1_wheel is greater that 127 (which I'm assuming is when the button is pressed. If not, change it to < ) it'll evaluate to 1, and if it's less than 127 (which I'm assuming is not pressed) it'll evaluate to 0.