A demo setup of the "Pan/Tilt Demo" code. This demo code uses the default setup of the Pixy servo motor control to follow Block 0 signature defined on the Pixy camera using the PixyMon software. Demo can be found here: https://www.youtube.com/watch?v=6D5IQyrFocU https://developer.mbed.org/users/swilkins8/notebook/cmucam5-pixy/
Dependencies: mbed TPixy-Interface
Diff: main.cpp
- Revision:
- 0:886deae63aa3
- Child:
- 1:b05954fae6d8
diff -r 000000000000 -r 886deae63aa3 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Mar 14 00:38:32 2016 +0000 @@ -0,0 +1,12 @@ +#include "Pixy.h" +//#include "TPixyInterface.h" +//#include "TPixy.h" + +Serial serial(USBTX, USBRX); +SPI spi(p5, p6, p7); +PixySPI pixy(&spi, &serial); + +int main() +{ + runPanTiltDemo(&pixy, &serial); +} \ No newline at end of file