FlexBook / Mbed 2 deprecated FlexBook171204a

Dependencies:   SDFileSystem app epson mbed msp430 pl tests

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pagedice.h Source File

pagedice.h

00001 //
00002 // Filename: pagedice.h
00003 //
00004 // Flexbook page for page A2.
00005 //
00006 
00007 // include guards
00008 #ifndef PAGEDICE_H
00009 #define PAGEDICE_H
00010 
00011 #include "page.h"
00012 #include "hal.h"
00013 #include "mcp23s17.h"
00014 #include "pageoled.h"
00015 
00016 namespace Flexbook
00017 {
00018 
00019 struct SensorData;
00020 
00021 class PageDice : public Page
00022 {
00023 public:
00024     // Constructor needs to be explicit.
00025     explicit PageDice();
00026 
00027     // Destructor.
00028     virtual ~PageDice();
00029     
00030     virtual void HandlePageActions();
00031 
00032     uint8_t DiceValue();
00033     //uint8_t dicenr;
00034 
00035 private:
00036     // Disable the copy constructor.
00037     PageDice(const PageDice &);
00038 
00039     // Disable assignment.
00040     PageDice &operator=(const PageDice &);
00041     
00042     //void HandleDice();
00043     PageOLED pageoled;
00044     uint8_t DicePoll();
00045 };
00046 
00047 } // End Flexbook namespace.
00048 
00049 #endif // PAGEDICE_H
00050 
00051 
00052