Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MCP23017 SDFileSystem USBDevice WattBob_TextLCD mbed
main.cpp@7:d9f86e1b8185, 2014-02-19 (annotated)
- Committer:
- muaiyd
- Date:
- Wed Feb 19 17:33:00 2014 +0000
- Revision:
- 7:d9f86e1b8185
- Parent:
- 4:4bb228d1f6c2
- Child:
- 9:539c51b7db52
Add SD card
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 | 7:d9f86e1b8185 | 5 | CallFreqMsur.attach(&FreqMsur,1); //Measure the frequency every 400mS |
| muaiyd | 7:d9f86e1b8185 | 6 | CallReadDigitalin.attach(&ReadDigitalin,0.4); //Read TWO digital inputs every 400mS |
| muaiyd | 7:d9f86e1b8185 | 7 | CallReadAnalogin.attach(&ReadAnalogin,0.8); //Read TWO analogue inputs every 800mS |
| muaiyd | 7:d9f86e1b8185 | 8 | CallDisplay.attach(&Display,2); //Display on the LCD every 2 seconds |
| muaiyd | 7:d9f86e1b8185 | 9 | CallInputCheck.attach(&InputCheck,1.8); //Input Check every 1.8 second |
| muaiyd | 7:d9f86e1b8185 | 10 | CallBinaryCounter.attach(&BinaryCounter,1.5); //Binary increment every 1.5 second |
| muaiyd | 7:d9f86e1b8185 | 11 | CallLogFile.attach(&LogFile,5); //Log the values every 5 seconds |
| muaiyd | 0:86bba6bf9b6f | 12 | } |