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
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
Generated on Tue Jul 12 2022 21:14:35 by
