functions for reading the joystick
Dependents: SnakeProjectRev1 SnakeProjectRev1
Revision 3:ae04f59e274a, committed 2016-05-05
- Comitter:
- meurigp
- Date:
- Thu May 05 14:19:34 2016 +0000
- Parent:
- 2:e444008676a4
- Commit message:
- Neater code
Changed in this revision
Joystick.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r e444008676a4 -r ae04f59e274a Joystick.h --- 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 {