![](/media/cache/profiles/altb_JGUSAOG.jpg.50x50_q85.jpg)
SPI read Pixi Cam V1
Diff: main.cpp
- Revision:
- 4:478d4d9193a1
- Child:
- 5:d109b094d4bb
diff -r 66df7d295245 -r 478d4d9193a1 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Aug 23 11:26:37 2021 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" +#include "pixySPI.h" +//SPI spi(PC_12, PC_11, PC_10); +pixySPI pixy(PC_12, PC_11, PC_10,10); +static BufferedSerial serial_port(USBTX, USBRX,115200); +int main(void) + { + printf("Start\r\n"); + while(1) + { + ThisThread::sleep_for(200); + pixy.capture(); + ThisThread::sleep_for(200); + printf("NumBlocks: %d\r\n",pixy.getNumBlocks()); + } + //pixy.blocks[0].printBlock(); + } \ No newline at end of file