![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
I don't finish configuring this program.
Diff: main.cpp
- Revision:
- 1:46abb3b9347d
- Parent:
- 0:9beaad87014d
diff -r 9beaad87014d -r 46abb3b9347d main.cpp --- a/main.cpp Thu May 08 12:59:25 2014 +0000 +++ b/main.cpp Fri Aug 08 06:36:15 2014 +0000 @@ -6,16 +6,15 @@ Serial pc(USBTX, USBRX); int main() { - int delta_x = 0; - int delta_y = 0; + pc.printf("Hello World! test ADNS3080\n\r"); + pc.printf("prodID is %x\n\r", OptFlow.getProdID()); + pc.printf("configuration is %x\n\r", OptFlow.getConfiguration_bits()); + while(1){ - - delta_x= OptFlow.getDelta_X(); - - delta_y = OptFlow.getDelta_Y(); - pc.printf("%4d, %4d\n\r", delta_x ,delta_y ); - wait(0.1); + OptFlow.getMotion(); + pc.printf("%4d, %4d\n\r", OptFlow.getDelta_X(),OptFlow.getDelta_Y()); + wait(0.01); } }