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:7d8ffdfdb16e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Die.h Fri Oct 22 03:57:47 2021 +0000
@@ -0,0 +1,41 @@
+#ifndef DIE_H
+#define DIE_H
+
+#include "mbed.h"
+#include "uLCD_4DGL.h"
+
+#include <iostream>
+#include <string>
+
+using namespace std;
+
+class Die{
+ public:
+ //Constructor
+ Die();
+ Die(int v);
+
+ //public methods
+ void rollDie();
+
+ //draw methods
+ void draw1(int, uLCD_4DGL&);
+ void draw2(int, uLCD_4DGL&);
+ void draw3(int, uLCD_4DGL&);
+ void draw4(int, uLCD_4DGL&);
+ void draw5(int, uLCD_4DGL&);
+ void draw6(int, uLCD_4DGL&);
+
+ //display drawings
+ void displayDie(int, uLCD_4DGL&);
+
+ //val s&g
+ int getVal();
+ void setVal(int);
+
+ private:
+ int val;
+};
+
+#endif
+