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
pagetouch.h
00001 // 00002 // Filename: pagetouch.h 00003 // 00004 // Flexbook page for page A4. 00005 // 00006 00007 // include guards 00008 #ifndef PAGETOUCH_H 00009 #define PAGETOUCH_H 00010 00011 #include "page.h" 00012 #include "pageflexenable.h" 00013 00014 #include "mbed.h" 00015 00016 #include "at42qt2120.h" 00017 00018 namespace Flexbook 00019 { 00020 00021 class PageTouch : public Page 00022 { 00023 public: 00024 // Constructor needs to be explicit. 00025 explicit PageTouch(); 00026 00027 // Destructor. 00028 virtual ~PageTouch(); 00029 00030 //virtual void HandlePageActions(); 00031 00032 int GetKey(); 00033 00034 private: 00035 // Disable the copy constructor. 00036 PageTouch(const PageTouch &); 00037 00038 // Disable assignment. 00039 PageTouch &operator=(const PageTouch &); 00040 00041 void TouchChange(); 00042 PageFlexEnable pageflexenable; 00043 00044 // Touch sensor. 00045 I2C i2c; 00046 InterruptIn irq; 00047 HAL::AT42QT2120 at42qt2120; 00048 00049 int key; 00050 bool newtouch; 00051 int imgnumber; 00052 00053 }; 00054 00055 } // End Flexbook namespace. 00056 00057 #endif // PAGETOUCH_H 00058
Generated on Tue Jul 12 2022 21:14:35 by
