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
Stopwatch.h@9:d7300899fd85, 2014-12-02 (annotated)
- Committer:
- ericspatterson
- Date:
- Tue Dec 02 18:10:09 2014 +0000
- Revision:
- 9:d7300899fd85
- Parent:
- 8:1db15ab871a4
Final Project
Who changed what in which revision?
User | Revision | Line number | New 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 | }; |