AND / Mbed 2 deprecated handheld_with_solenoid

Dependencies:   mbed

flow.h

Committer:
christodoulos
Date:
2019-07-04
Revision:
1:af991edb6dc1
Parent:
0:958e045ea7d1

File content as of revision 1:af991edb6dc1:

#include "mbed.h"

AnalogIn flowIn(A3);

float flowVal;

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