
Test program for MjAD520x.
Diff: main.cpp
- Revision:
- 0:22572a5860df
--- /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); + } +} +