Added HangmanGame class, but does not work yet

Dependencies:   SDFileSystem app epson mbed msp430 pl tests

pagetouch.h

Committer:
group-FlexBook
Date:
2017-12-04
Revision:
0:fa7450a43b99

File content as of revision 0:fa7450a43b99:

//
// Filename: pagetouch.h
//
// Flexbook page for page A4.
//

// include guards
#ifndef PAGETOUCH_H
#define PAGETOUCH_H

#include "page.h"
#include "pageflexenable.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;

    // Touch sensor.
    I2C i2c;
    InterruptIn irq;
    HAL::AT42QT2120 at42qt2120;
    
    int key;
    bool newtouch;
    int imgnumber;

};

} // End Flexbook namespace.

#endif // PAGETOUCH_H