Test program for MjAD520x.

Dependencies:   MjAD520x mbed

Files at this revision

API Documentation at this revision

Comitter:
matsujirushi
Date:
Sun Oct 18 05:14:33 2015 +0000
Commit message:
created.

Changed in this revision

MjAD520x.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 22572a5860df MjAD520x.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MjAD520x.lib	Sun Oct 18 05:14:33 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/matsujirushi/code/MjAD520x/#1d45c35a717b
diff -r 000000000000 -r 22572a5860df main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Oct 18 05:14:33 2015 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+#include "MjAD520x.h"
+
+MjAD520x potentiometer(p5, p6, p7, p8, 10000);
+
+int main()
+{
+    while(1) {
+        potentiometer.write(0, 0);
+        wait(2);
+
+        potentiometer.write(0, 2000);
+        wait(2);
+
+        potentiometer.write(0, 10000);
+        wait(2);
+    }
+}
+
diff -r 000000000000 -r 22572a5860df mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Oct 18 05:14:33 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/34e6b704fe68
\ No newline at end of file