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
main.cpp
- Committer:
- ryosuke
- Date:
- 2014-08-08
- Revision:
- 1:46abb3b9347d
- Parent:
- 0:9beaad87014d
- Child:
- 2:c7076b745c5a
File content as of revision 1:46abb3b9347d:
#include "mbed.h"
#include "ADNS3080.h"
DigitalOut myled(LED1);
ADNS3080 OptFlow(p5, p6, p7, p8);
Serial pc(USBTX, USBRX);
int main() {
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){
OptFlow.getMotion();
pc.printf("%4d, %4d\n\r", OptFlow.getDelta_X(),OptFlow.getDelta_Y());
wait(0.01);
}
}
