This is a Testing library
WaterMark200ss.h@0:8db346e7a51a, 2016-11-28 (annotated)
- Committer:
- javiersing
- Date:
- Mon Nov 28 13:00:08 2016 +0000
- Revision:
- 0:8db346e7a51a
This is a Testing library
Who changed what in which revision?
User | Revision | Line number | New 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 |
javiersing | 0:8db346e7a51a | 4 | float centibar = value / 0.0117155; |
javiersing | 0:8db346e7a51a | 5 | return centibar; |
javiersing | 0:8db346e7a51a | 6 | } |