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.
PDV_driver.cpp
00001 //Mackenzie Fraser 00002 //Assignment 4.2 00003 //Initialization function/inputs file 00004 00005 #include "PDV_driver.h" 00006 00007 PDV::PDV(PinName in2): _in2(in2) { //initialization function 00008 } 00009 00010 float PDV::resist(){ //define resistance variable 00011 float R=_in2.read(); //read and convert to correct format 00012 return R; 00013 } 00014 00015 float PDV::voltage(){ //define voltage variable 00016 float V=_in2.read()*3.3; //read and convert to correct format 00017 return V; 00018 }
Generated on Fri Oct 13 2023 20:10:08 by
 1.7.2