GDP 4
/
KL25Z_Camera_Test
Sends raw hex values from camera to hosted program
Diff: main.cpp
- Revision:
- 6:728c38a132ba
- Parent:
- 5:727d5bbc14a5
- Parent:
- 2:4b6f6fc84793
--- a/main.cpp Fri Nov 11 12:16:50 2016 +0000 +++ b/main.cpp Fri Nov 11 12:19:54 2016 +0000 @@ -1,10 +1,9 @@ #include "mbed.h" #include "TFC.h" -#define CAM_THRESHOLD 128 - +Serial pc(USBTX,USBRX); DigitalOut myled(LED1); -Serial pc(PTD3,PTD2); +//Serial pc(PTD3,PTD2); @@ -12,11 +11,11 @@ int main() { TFC_Init(); pc.baud(57600); - + uint32_t i = 0; + while(1) { - - //If we have an image ready + if(TFC_LineScanImageReady>0) { pc.putc('H'); for(i = 0; i < 128; i++) { @@ -28,5 +27,6 @@ TFC_LineScanImageReady=0; wait(0.05); } + } } \ No newline at end of file