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:   TPixy-Interface mbed

main.cpp

Committer:
swilkins8
Date:
2016-03-14
Revision:
0:886deae63aa3

File content as of revision 0:886deae63aa3:

#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);
}