![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
pixy spi
Dependencies: TPixy-Interface mbed
Fork of PixyCamera by
main.cpp@1:d6c854e2d3be, 2018-10-25 (annotated)
- Committer:
- halusis
- Date:
- Thu Oct 25 04:01:22 2018 +0000
- Revision:
- 1:d6c854e2d3be
- Parent:
- 0:886deae63aa3
pixy spi
Who changed what in which revision?
User | Revision | Line number | New 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); |
halusis | 1:d6c854e2d3be | 12 | pixy.blocks[0].printBlock(); |
swilkins8 | 0:886deae63aa3 | 13 | } |