Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BSP_DISCO_F429ZI LCD_DISCO_F429ZI mbed
Fork of ADNS3080_HelloWorld by
Diff: main.cpp
- Revision:
- 0:9beaad87014d
- Child:
- 1:46abb3b9347d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu May 08 12:59:25 2014 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "ADNS3080.h"
+
+DigitalOut myled(LED1);
+ADNS3080 OptFlow(p5, p6, p7, p8);
+Serial pc(USBTX, USBRX);
+
+int main() {
+ int delta_x = 0;
+ int delta_y = 0;
+ pc.printf("Hello World! test ADNS3080\n\r");
+
+ 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);
+ }
+}
