WaterMarkFork
Fork of WaterMark200ss by
WaterMark200ss.h@1:4006d971a618, 2016-12-14 (annotated)
- Committer:
- agrosmart
- Date:
- Wed Dec 14 09:46:24 2016 +0000
- Revision:
- 1:4006d971a618
- Parent:
- 0:8db346e7a51a
-
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 |
agrosmart | 1:4006d971a618 | 4 | float centibar = (value * 2.81) / 0.0117155; |
javiersing | 0:8db346e7a51a | 5 | return centibar; |
javiersing | 0:8db346e7a51a | 6 | } |