Mouse code for the MacroRat
Diff: main.h
- Revision:
- 10:810d1849da9d
- Parent:
- 9:1d8e4da058cd
- Child:
- 11:8fc2b703086b
diff -r 1d8e4da058cd -r 810d1849da9d main.h --- a/main.h Sat May 06 01:31:44 2017 +0000 +++ b/main.h Sat May 06 22:49:31 2017 +0000 @@ -55,4 +55,24 @@ int gyroY = 0; int gyroZ = 0; +InterruptIn dipButton1(PB_15); +InterruptIn dipButton2(PB_10); +InterruptIn dipButton3(PB_9); +InterruptIn dipButton4(PB_12); + +void enableButton1(); +void enableButton2(); +void enableButton3(); +void enableButton4(); +void disableButton1(); +void disableButton2(); +void disableButton3(); +void disableButton4(); + +int dipFlags = 0; +#define BUTTON1_FLAG 0x0001 +#define BUTTON2_FLAG 0x0010 +#define BUTTON3_FLAG 0x0100 +#define BUTTON4_FLAG 0x1000 + #endif \ No newline at end of file