![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Embedded software Assessment 2
Dependencies: MCP23017 SDFileSystem USBDevice WattBob_TextLCD mbed
main.cpp@9:539c51b7db52, 2014-02-21 (annotated)
- Committer:
- muaiyd
- Date:
- Fri Feb 21 09:39:59 2014 +0000
- Revision:
- 9:539c51b7db52
- Parent:
- 7:d9f86e1b8185
- Child:
- 12:582753a4f1fb
SD card has error try to overcome;
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 | 9:539c51b7db52 | 5 | LogTimer.start(); |
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 | } |