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.
Diff: LineScan.h
- Revision:
- 0:2d546112b0b8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LineScan.h Fri Mar 13 06:26:35 2015 +0000 @@ -0,0 +1,9 @@ +#include "mbed.h" +#include "rtos.h" + +#define NUM_PIX 128 + +uint16_t read1Bit(AnalogIn cam, DigitalOut *camClk); +void startRead(DigitalOut *camSi, DigitalOut *camClk); +int processFn(uint16_t *array, int arraySz); +int getLinePos(AnalogIn cam, DigitalOut *camSi, DigitalOut *camClk); \ No newline at end of file