AND / Mbed 2 deprecated handheld_with_solenoid

Dependencies:   mbed

flow.h

Committer:
christodoulos
Date:
2019-03-22
Revision:
0:958e045ea7d1
Child:
1:af991edb6dc1

File content as of revision 0:958e045ea7d1:

#include "mbed.h"

AnalogIn flowIn(A0);

float flowVal;

float flow(){
    while(1){
          flowVal=3.3*flowIn; //Logic level 3.3
          return flowVal;
    }
}