Working better. Maybe a little more improvement needs to be made to the display algorithm.

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

Fork of Coffee_Roaster_testing by Eric Patterson

Committer:
ericspatterson
Date:
Thu Nov 20 20:30:51 2014 +0000
Revision:
8:1db15ab871a4
Working better, might need to improve "temptemp" variable display a bit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ericspatterson 8:1db15ab871a4 1 #include "stdio.h"
ericspatterson 8:1db15ab871a4 2 #include "stdlib.h"
ericspatterson 8:1db15ab871a4 3 #include "math.h"
ericspatterson 8:1db15ab871a4 4 #include "mbed.h"
ericspatterson 8:1db15ab871a4 5
ericspatterson 8:1db15ab871a4 6 class Stopwatch {
ericspatterson 8:1db15ab871a4 7 public:
ericspatterson 8:1db15ab871a4 8 Stopwatch();
ericspatterson 8:1db15ab871a4 9 ~Stopwatch();
ericspatterson 8:1db15ab871a4 10 void start();
ericspatterson 8:1db15ab871a4 11 void stop();
ericspatterson 8:1db15ab871a4 12 char* getTime();
ericspatterson 8:1db15ab871a4 13 void countDown(int startTime);
ericspatterson 8:1db15ab871a4 14 private:
ericspatterson 8:1db15ab871a4 15 int ms;
ericspatterson 8:1db15ab871a4 16 int sec;
ericspatterson 8:1db15ab871a4 17 int min;
ericspatterson 8:1db15ab871a4 18 char buffer[9];
ericspatterson 8:1db15ab871a4 19 Timer sw;
ericspatterson 8:1db15ab871a4 20 };