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: chara.h
- Revision:
- 2:cc9d8ec2e1f4
- Parent:
- 1:48b0bf0bcda8
diff -r 48b0bf0bcda8 -r cc9d8ec2e1f4 chara.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chara.h Fri May 15 17:44:25 2020 +0000
@@ -0,0 +1,33 @@
+#ifndef CHARA_H
+#define CHARA_H
+
+#include "Bitmap.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "mbed.h"
+#include "FXOS8700CQ.h"
+
+
+struct xy{
+ int x;
+ int y;
+};
+
+class chara{
+ public:
+ void init();
+ void update(Gamepad &pad, FXOS8700CQ &device);
+ void display(N5110 &lcd);
+ xy getxy();
+ int getwidth();
+ int getheight();
+
+ private:
+ int _height;
+ int _width;
+ int data[56];
+ xy _xy;
+
+};
+#endif
+