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: SDFileSystem app epson mbed msp430 pl tests
Diff: pagetouch.h
- Revision:
- 0:c643d398cdb6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pagetouch.h Thu Jan 11 13:42:27 2018 +0000
@@ -0,0 +1,61 @@
+//
+// Filename: pagetouch.h
+//
+// Flexbook page for page A4.
+//
+
+// include guards
+#ifndef PAGETOUCH_H
+#define PAGETOUCH_H
+
+#include "page.h"
+#include "pageflexenable.h"
+#include "hangman.h"
+#include "eink.h"
+
+#include "mbed.h"
+
+#include "at42qt2120.h"
+
+namespace Flexbook
+{
+
+class PageTouch : public Page
+{
+public:
+ // Constructor needs to be explicit.
+ explicit PageTouch();
+
+ // Destructor.
+ virtual ~PageTouch();
+
+ //virtual void HandlePageActions();
+
+ int GetKey();
+
+private:
+ // Disable the copy constructor.
+ PageTouch(const PageTouch &);
+
+ // Disable assignment.
+ PageTouch &operator=(const PageTouch &);
+
+ void TouchChange();
+ PageFlexEnable pageflexenable;
+ HangmanGame hangmangame;
+
+ // Touch sensor.
+ I2C i2c;
+ InterruptIn irq;
+ HAL::AT42QT2120 at42qt2120;
+
+ int key;
+ bool newtouch;
+ int imgnumber;
+
+};
+
+} // End Flexbook namespace.
+
+#endif // PAGETOUCH_H
+