Main Site Documentation

Possibly Stupid Button Question


#1

OK, so, The EMX Dev kit has Up/Down/Select AND Left/Right buttons. It looks like the left and right buttons are mapped to IO23 and I01. FEZ Cobra ENUM Pins have only Up/Down/Select. Some applications require, ask for, the Left and Right as well. Easy enough to hook buttons up to these other two pins, but how do you indicate they are left and right for apps that want left and right (other then to go into the apps and change the code)? What am I missing? Thanks


#2

You can add buttons and use code to handle events. Look for InputPort and InterruptPort in the eBook.


#3

Further you are not limited to the enumerated pins. You can define your own as Cpu.Pin.


#4

Hey…good point, I should have thought of that…thanks