WaterMarkFork

Fork of WaterMark200ss by Javier Sing

Committer:
agrosmart
Date:
Wed Dec 14 09:46:24 2016 +0000
Revision:
1:4006d971a618
Parent:
0:8db346e7a51a
-

Who changed what in which revision?

UserRevisionLine numberNew contents of line
javiersing 0:8db346e7a51a 1 float Moist200ss(AnalogIn moist)
javiersing 0:8db346e7a51a 2 {
javiersing 0:8db346e7a51a 3 float value = moist.read(); // lee el puerto analogico y lo muestra de 0-1V
agrosmart 1:4006d971a618 4 float centibar = (value * 2.81) / 0.0117155;
javiersing 0:8db346e7a51a 5 return centibar;
javiersing 0:8db346e7a51a 6 }