Mouse code for the MacroRat
Diff: main.h
- Revision:
- 35:a5bd9ef82210
- Parent:
- 33:68ce1f74ab5f
- Child:
- 36:9c4cc9944b69
diff -r 69342782fb68 -r a5bd9ef82210 main.h --- a/main.h Fri May 26 17:21:04 2017 +0000 +++ b/main.h Sat May 27 00:41:19 2017 +0000 @@ -49,7 +49,7 @@ */ // Doing DEBUGGING -#define DEBUGGING 1 +#define DEBUGGING 0 Serial serial(PC_6, PC_7); // Gyro @@ -84,7 +84,7 @@ void changeManhattanDistance(bool headCenter); bool hasVisited(int x, int y); -int dipFlags = 0; +volatile int dipFlags = 0; #define BUTTON1_FLAG 0x1 #define BUTTON2_FLAG 0x2 #define BUTTON3_FLAG 0x4