Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Control.h
- Revision:
- 2:8dd5298ca3a0
- Parent:
- 1:9c7744271d72
--- a/Control.h Sat Dec 28 06:18:27 2019 +0000
+++ b/Control.h Sat Jan 04 04:24:19 2020 +0000
@@ -7,6 +7,18 @@
void run();
private:
+ #define L1 0
+ #define L2 1
+ #define R1 2
+ #define R2 3
+ #define TRIANGLE 4
+ #define CIRCLE 5
+ #define CROSS 6
+ #define SQUARE 7
+ #define UP 8
+ #define DOWN 9
+ #define LEFT 10
+ #define RIGHT 11
void OmniControl();
void ModuleControl(int num,int direction);
void SolenoidControl();
@@ -18,10 +30,11 @@
int pre_button[4];
int PS3_R1_bit();
int pre_PS3_R1_bit;
- int pre_button_circle[];
- int pre_button_triangle[];
- int pre_button_square[];
- int pre_button_cross[];
+ int pre_button_circle;
+ int pre_button_triangle;
+ int pre_button_square;
+ int pre_button_cross;
+ int CheckButton(int status,int button);
};
#endif
\ No newline at end of file