functions for reading the joystick

Dependents:   SnakeProjectRev1 SnakeProjectRev1

Files at this revision

API Documentation at this revision

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
--- 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 {