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 FATFileSystem
Diff: CaMove/CaMove.h
- Revision:
- 4:34bf3587cf42
- Child:
- 5:860087ff295e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CaMove/CaMove.h Thu Apr 18 21:44:05 2019 +0000
@@ -0,0 +1,33 @@
+#ifndef CAMOVE_H
+#define CAMOVE_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Bitmap.h"
+#include <vector>
+
+enum Direction {Lt,Rt,Fd,Bd};
+
+class CaMove {
+ public:
+ CaMove(PinName pin);
+ ~CaMove();
+ void CMmove(N5110 &lcd, AnalogIn &hoz, AnalogIn &ver);
+ void set_region(int xmin, int ymax, int xl, int yl);
+ void delete_regions();
+ void intercheck();
+ bool get_Trig();
+ bool inscreen();
+ private:
+ Direction Faceing;
+ int _h;
+ int _v;
+ short int _itr;
+ std::vector<int> intereact;
+ InterruptIn _check;
+ volatile int tregion;
+ volatile bool Trig;
+
+};
+
+#endif