an SPI interface the cmu pixy camera
Dependents: robotic_fish_ver_4_9_pixy UMO
Diff: pixy.h
- Revision:
- 7:e57b18779bf1
- Parent:
- 6:4bf8d39fc5ce
- Child:
- 8:a915c5eff55a
--- a/pixy.h Thu Jun 05 17:31:43 2014 +0000 +++ b/pixy.h Fri Jun 06 16:18:49 2014 +0000 @@ -1,5 +1,6 @@ #pragma once #include "mbed.h" +#include "rtos.h" #define INVALID_BLOCK 20 #define CENTER_X 320 @@ -35,7 +36,7 @@ public: pixySPI(PinName mosi,PinName miso,PinName sclk, int nBlocks); ~pixySPI(); - void capture(); //fills in the blocks pointer + void capture(Mutex* mutex); //fills in the blocks pointer char getRawData(); Block* getBlocks(); int getNumBlocks();