method
ccd_Init(void)
Linear CCD initialization
| Return value | type |
| none | void |
Get_Adc_CCD(u8 ch)
AD sampling
| parameter | type | Annotation |
| ch | u8 | ADC channel |
| Return value | type |
| AD conversion result | u16 |
Dly_us(void)
Delay function
| Return value | type |
| none | void |
RD_TSL(void)
CCD data collection
| Return value | type |
| none | void |
deal_data_ccd(void)
Start CCD collection and process output data
| Return value | type |
| none | void |
Find_CCD_Zhongzhi(void)
Linear CCD take medium value
| Return value | type |
| none | void |
CCD_Get_ADC_128X32(void)
Returns 128 pixel points ADV collection voltage values and compress the amplitude to 128 *32
| Return value | type |
| uint8_t* | 128 pointers to storage |
OLED_Show_CCD_Image(uint8_t* p_img)
Display CCD images on OLED
| parameter | type | Annotation |
| p_img | uint8_t* | Pointing to image data |
| Return value | type |
| none | void |
binToHex_low(u8 num)
Convert the binary number to low level, hexadecimal,
| parameter | type | Annotation |
| num | u8 | Number to be converted |
| Return value | type |
| Low Sixteen Equipment Number | char |
binToHex_high(u8 num)
Convert binary numbers to high level hexadic
| parameter | type | Annotation |
| num | u8 | Number to be converted |
| Return value | type |
| High Sixteen -in -Publication Number | char |
slove_data(void)
Processed the obtained data
| Return value | type |
| none | void |
sendToPc(void)
Send data to PC
| Return value | type |
| none | void |