functions for reading the joystick
Dependents: SnakeProjectRev1 SnakeProjectRev1
Diff: Joystick.h
- Revision:
- 3:ae04f59e274a
- Parent:
- 2:e444008676a4
--- a/Joystick.h Sun May 01 16:50:14 2016 +0000 +++ b/Joystick.h Thu May 05 14:19:34 2016 +0000 @@ -11,6 +11,8 @@ AnalogIn xPot(PTB2); AnalogIn yPot(PTB3); +Ticker pollJoystick; + // create enumerated type (0,1,2,3 etc. for direction) // could be extended for diagonals etc. enum DirectionName {