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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 5:fe1f5b231446
- Parent:
- 4:b52a0d2925df
- Child:
- 6:7d0e05c39c22
--- a/main.cpp Sat Apr 20 19:19:26 2019 +0000
+++ b/main.cpp Sun Apr 21 00:38:13 2019 +0000
@@ -2,6 +2,7 @@
#include "Image.h"
#include "Rotate.h"
#include "Release.h"
+#include "Global_my.h"
#include "Gamepad.h"
#define PI 3.1415
@@ -14,6 +15,7 @@
Release Release;
Detect detect;
+
InterruptIn A(PTB9);
InterruptIn B(PTD0);
@@ -25,6 +27,7 @@
volatile int g_A_flag = 0;
volatile int g_B_flag = 0;
+
int main()
{
// first need to initialise display
@@ -77,7 +80,7 @@
// end
break;
case 2 :
- Release.release(detect, lcd,Image, Rotate.return_angle);
+ Release.release(detect, lcd,Image, Rotate.return_angle, (int*)level_1_X, (int*)level_1_Y);
//printf("f%", Rotate.return_angle);
g_A_flag = 1;
g_B_flag = 0;