Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: LM19_Driver.cpp
- Revision:
- 0:929925da937d
- Child:
- 1:101ffcb3157f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LM19_Driver.cpp Thu Nov 24 02:11:25 2022 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" + +LM19::LM19(PinName in1): _in1(in1) +{ + c1 = -1481.96; + c2 = 2.1962*1000000.000; + c3 = 1.8636; + c4 = 3.88/1000000.000; + +} + +float LM19::volt() +{ + float volt=_in1.read()*3.3; + return volt; + +}