![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Embedded software Assessment 2
Dependencies: MCP23017 SDFileSystem USBDevice WattBob_TextLCD mbed
main.cpp@13:6094b94b3b7c, 2014-02-21 (annotated)
- Committer:
- muaiyd
- Date:
- Fri Feb 21 12:32:00 2014 +0000
- Revision:
- 13:6094b94b3b7c
- Parent:
- 12:582753a4f1fb
- Child:
- 16:0a2138a18f26
Finisfed (writing comment)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
muaiyd | 0:86bba6bf9b6f | 1 | #include "Function.h" |
muaiyd | 0:86bba6bf9b6f | 2 | |
muaiyd | 0:86bba6bf9b6f | 3 | int main(){ |
muaiyd | 0:86bba6bf9b6f | 4 | Init_LCD(); |
muaiyd | 12:582753a4f1fb | 5 | InitFile(); |
muaiyd | 7:d9f86e1b8185 | 6 | CallFreqMsur.attach(&FreqMsur,1); //Measure the frequency every 400mS |
muaiyd | 7:d9f86e1b8185 | 7 | CallReadDigitalin.attach(&ReadDigitalin,0.4); //Read TWO digital inputs every 400mS |
muaiyd | 7:d9f86e1b8185 | 8 | CallReadAnalogin.attach(&ReadAnalogin,0.8); //Read TWO analogue inputs every 800mS |
muaiyd | 7:d9f86e1b8185 | 9 | CallDisplay.attach(&Display,2); //Display on the LCD every 2 seconds |
muaiyd | 7:d9f86e1b8185 | 10 | CallInputCheck.attach(&InputCheck,1.8); //Input Check every 1.8 second |
muaiyd | 7:d9f86e1b8185 | 11 | CallBinaryCounter.attach(&BinaryCounter,1.5); //Binary increment every 1.5 second |
muaiyd | 7:d9f86e1b8185 | 12 | CallLogFile.attach(&LogFile,5); //Log the values every 5 seconds |
muaiyd | 0:86bba6bf9b6f | 13 | } |