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

Revisions of main.cpp

Revision Date Message Actions
0:de22d10e901f 2019-05-22 DigitalInterrupts File  Diff  Annotate