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@1:af991edb6dc1, 2019-07-04 (annotated)
- Committer:
- christodoulos
- Date:
- Thu Jul 04 09:09:54 2019 +0000
- Revision:
- 1:af991edb6dc1
- Parent:
- 0:958e045ea7d1
Handheld with solenoid
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 | 1:af991edb6dc1 | 3 | AnalogIn flowIn(A3); |
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 | } |