AD5270 Hello world
For additional information check out the mbed page of the Analog Devices wiki: https://wiki.analog.com/resources/tools-software/mbed-drivers-all
Revision 0:01e942c09c17, committed 2016-05-03
- Comitter:
- adisuciu
- Date:
- Tue May 03 14:15:25 2016 +0000
- Child:
- 1:68f1c45d6017
- Commit message:
- Initial revision
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ad5270.lib Tue May 03 14:15:25 2016 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/teams/AnalogDevices/code/ad5270/#18d434f6f122
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue May 03 14:15:25 2016 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+#include "AD5270.h"
+
+Serial pc(USBTX, USBRX); ///< Serial interface to the pc
+
+AD5270 ad5270(D6,20000); // set chipselect and ad5270 max resistance
+
+int main() {
+
+ pc.printf("Current value of the AD5270 is %f", ad5270.read_RDAC ());
+ while(1);
+
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue May 03 14:15:25 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/aae6fcc7d9bb \ No newline at end of file
Analog Devices AD5270