![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Added HangmanGame class, but does not work yet
Dependencies: SDFileSystem app epson mbed msp430 pl tests
Diff: pagedice.h
- Revision:
- 0:fa7450a43b99
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pagedice.h Mon Dec 04 09:32:20 2017 +0000 @@ -0,0 +1,52 @@ +// +// Filename: pagedice.h +// +// Flexbook page for page A2. +// + +// include guards +#ifndef PAGEDICE_H +#define PAGEDICE_H + +#include "page.h" +#include "hal.h" +#include "mcp23s17.h" +#include "pageoled.h" + +namespace Flexbook +{ + +struct SensorData; + +class PageDice : public Page +{ +public: + // Constructor needs to be explicit. + explicit PageDice(); + + // Destructor. + virtual ~PageDice(); + + virtual void HandlePageActions(); + + uint8_t DiceValue(); + //uint8_t dicenr; + +private: + // Disable the copy constructor. + PageDice(const PageDice &); + + // Disable assignment. + PageDice &operator=(const PageDice &); + + //void HandleDice(); + PageOLED pageoled; + uint8_t DicePoll(); +}; + +} // End Flexbook namespace. + +#endif // PAGEDICE_H + + +