Final project code

Dependencies:   4DGL-uLCD-SE MAX31855 mbed-rtos mbed

Fork of Coffee_Roaster_Threads by Eric Patterson

Stopwatch.h

Committer:
ericspatterson
Date:
2014-12-02
Revision:
9:d7300899fd85
Parent:
8:1db15ab871a4

File content as of revision 9:d7300899fd85:

#include "stdio.h"
#include "stdlib.h"
#include "math.h"
#include "mbed.h"
 
class Stopwatch {
public:
    Stopwatch();
    ~Stopwatch();
    void start();
    void stop();
    char* getTime();
    void countDown(int startTime);
private:
    int ms;
    int sec;
    int min;
    char buffer[9];
    Timer sw;
};