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: mbed 4DGL-uLCD-SE PinDetect
Diff: die.h
- Revision:
- 0:8ee41d0deef7
- Child:
- 1:3cd6e5938144
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/die.h Tue Oct 26 05:10:36 2021 +0000
@@ -0,0 +1,38 @@
+#define WHITE 0xFFFFFF
+#define BLACK 0x000000
+#ifndef DIE_H
+#define DIE_H
+#include "mbed.h"
+#include "uLCD_4DGL.h"
+#include <string>
+
+
+class Die {
+ private:
+ int value;
+
+ public:
+ Die();
+ Die(int);
+
+ void rollDie();
+
+ void displayOneDice(int, uLCD_4DGL&);
+ void displayTwoDice(int, uLCD_4DGL&);
+ void displayThreeDice(int, uLCD_4DGL&);
+ void displayFourDice(int, uLCD_4DGL&);
+ void displayFiveDice(int, uLCD_4DGL&);
+ void displaySixDice(int, uLCD_4DGL&);
+
+ //display drawings
+ void displayDie(int, uLCD_4DGL&);
+
+ //val s&g
+ int getValue();
+ void setValue(int);
+
+};
+
+#endif
+
+
\ No newline at end of file