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: mbed
flow.h@0:958e045ea7d1, 2019-03-22 (annotated)
- Committer:
- christodoulos
- Date:
- Fri Mar 22 10:31:21 2019 +0000
- Revision:
- 0:958e045ea7d1
- Child:
- 1:af991edb6dc1
Test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
christodoulos | 0:958e045ea7d1 | 1 | #include "mbed.h" |
christodoulos | 0:958e045ea7d1 | 2 | |
christodoulos | 0:958e045ea7d1 | 3 | AnalogIn flowIn(A0); |
christodoulos | 0:958e045ea7d1 | 4 | |
christodoulos | 0:958e045ea7d1 | 5 | float flowVal; |
christodoulos | 0:958e045ea7d1 | 6 | |
christodoulos | 0:958e045ea7d1 | 7 | float flow(){ |
christodoulos | 0:958e045ea7d1 | 8 | while(1){ |
christodoulos | 0:958e045ea7d1 | 9 | flowVal=3.3*flowIn; //Logic level 3.3 |
christodoulos | 0:958e045ea7d1 | 10 | return flowVal; |
christodoulos | 0:958e045ea7d1 | 11 | } |
christodoulos | 0:958e045ea7d1 | 12 | } |