Created LineScan library to interface with line scanner. Verified that it was able to store values form camera. Needs a means to detect the line (rising/falling edge detection) and actuate servo. Needs to be merged with other branch.

Committer:
ng3600
Date:
Fri Mar 13 06:26:35 2015 +0000
Revision:
0:2d546112b0b8
LineScan library to interface with the line scanner

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ng3600 0:2d546112b0b8 1 #include "mbed.h"
ng3600 0:2d546112b0b8 2 #include "rtos.h"
ng3600 0:2d546112b0b8 3
ng3600 0:2d546112b0b8 4 #define NUM_PIX 128
ng3600 0:2d546112b0b8 5
ng3600 0:2d546112b0b8 6 uint16_t read1Bit(AnalogIn cam, DigitalOut *camClk);
ng3600 0:2d546112b0b8 7 void startRead(DigitalOut *camSi, DigitalOut *camClk);
ng3600 0:2d546112b0b8 8 int processFn(uint16_t *array, int arraySz);
ng3600 0:2d546112b0b8 9 int getLinePos(AnalogIn cam, DigitalOut *camSi, DigitalOut *camClk);