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

Committer:
swilkins8
Date:
Mon Mar 14 00:38:32 2016 +0000
Revision:
0:886deae63aa3
A setup of the "Pan/Tilt Demo" code

Who changed what in which revision?

UserRevisionLine numberNew contents of line
swilkins8 0:886deae63aa3 1 #include "Pixy.h"
swilkins8 0:886deae63aa3 2 //#include "TPixyInterface.h"
swilkins8 0:886deae63aa3 3 //#include "TPixy.h"
swilkins8 0:886deae63aa3 4
swilkins8 0:886deae63aa3 5 Serial serial(USBTX, USBRX);
swilkins8 0:886deae63aa3 6 SPI spi(p5, p6, p7);
swilkins8 0:886deae63aa3 7 PixySPI pixy(&spi, &serial);
swilkins8 0:886deae63aa3 8
swilkins8 0:886deae63aa3 9 int main()
swilkins8 0:886deae63aa3 10 {
swilkins8 0:886deae63aa3 11 runPanTiltDemo(&pixy, &serial);
swilkins8 0:886deae63aa3 12 }