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.
LineScan.h
- Committer:
- ng3600
- Date:
- 2015-03-13
- Revision:
- 0:2d546112b0b8
File content as of revision 0:2d546112b0b8:
#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);