Configure thr pins available on the joystick as InterruptIn and use a printf statement to print the direction in which the joystick is pushed.

Dependencies:   mbed

History

DigitalInterrupts default tip

2019-05-22, by t00203959 [Wed, 22 May 2019 10:33:06 +0000] rev 0

DigitalInterrupts