Takashi Matsuoka
/
MjAD520x_Hello
Test program for MjAD520x.
Revision 0:22572a5860df, committed 2015-10-18
- Comitter:
- matsujirushi
- Date:
- Sun Oct 18 05:14:33 2015 +0000
- Commit message:
- created.
Changed in this revision
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