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: PDV_Driver.cpp
- Revision:
- 0:b74bf233f073
- Child:
- 1:420ee7ee09ca
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/PDV_Driver.cpp Wed Nov 17 21:52:46 2021 +0000
@@ -0,0 +1,13 @@
+#include "PDV_Driver.h"
+
+PDV::PDV(PinName in2):_in2(in2) {
+ c1 = 100000;
+ c2 = 3.3;
+
+}
+
+float PDV::res(){
+ float res=_in2.read();
+ float R=(c2*((c1/res))-c1);
+ return R;
+}