Moved to Team 9.

Fork of LineScan by Nicholas Gan

Revision:
1:f10ec868cd71
Parent:
0:2d546112b0b8
Child:
2:6a87b2348245
Child:
4:91e7f2c8999f
--- a/LineScan.cpp	Fri Mar 13 06:26:35 2015 +0000
+++ b/LineScan.cpp	Fri Mar 13 08:18:05 2015 +0000
@@ -1,7 +1,7 @@
 /*
 AnalogIn cam1(CAM1_IN);
 DigitalOut camSi(CAM_SI);
-DigitalOut camClk(CAM_CLK); // Definining camera pins. 
+DigitalOut camClk(CAM_CLK); // Definining camera pins. These are actually defined in Main... 
 */
 #include "LineScan.h"
 
@@ -13,7 +13,7 @@
     
     //clock pulse for next pixel n + 1
     *camClk = 1;
-    *camClk = 0;
+    *camClk = 0;    // Apparently there is no need for any delay. It may be desireable to flatten this, or perhaps the compiler does it. 
     
     return pixel;  //return result as an uint16_t (16 bit integer)
 }
@@ -42,7 +42,7 @@
 
 //call after integration time is done, returns index of array line is expected to be at
 int getLinePos(AnalogIn cam, DigitalOut *camSi, DigitalOut *camClk){
-    uint16_t lineAry[NUM_PIX];
+    uint16_t lineAry[NUM_PIX];          // It might be nice to make this static and add double buffering and export of pointers like I had. 
     int position;
     
     //read