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
Die.h
- Committer:
- ashi31
- Date:
- 2021-10-22
- Revision:
- 0:7d8ffdfdb16e
File content as of revision 0:7d8ffdfdb16e:
#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