
Test program for MjAD520x.
main.cpp
- Committer:
- matsujirushi
- Date:
- 2015-10-18
- Revision:
- 0:22572a5860df
File content as of revision 0:22572a5860df:
#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); } }