PCB抄板飞思卡尔小车摄像头组图像识别程序 时间:2026-09-09 来源: 芯片解密 浏览:2次 字号:大 中 小 PCB抄板包含图像二值化单片机源程序如下:/*!* PCB抄板** PCB抄板*/#include "include.h"#include "motor.h"#include "camera.h"#include "servo.h"#include "image_process.h"#include "menu.h"#include "flash.h"#include "ultrasonic.h"#include "switch.h"#include "bluetooth.h"#include "isr.h"uint8 cnt;#if defined CAR_1#define VSYNC_ PTD17#define HREF_ PTD16#define PCLK_ PTD18#endif/*#if defined CAR_2#define VSYNC_ PTC17 //PTD14#define HREF_ PTC16 //PTD13#define PCLK_ PTC18 //PTD12#endif*/volatile Image gImage;//(60,10)//! 初始化摄像头inline static void CameraInit(){ IICWriteGpio_inintOV();//初始化设置SCCB引脚 while (ov7725_probe() == 0)//初始化寄存器 ; ov7725_set_image_size(IMAGE_SIZE);//设置图像大小 CameraSetImageBuffer(gImage); CameraInterruptInit();//中断初始化}//! 拨码开关的值volatile float switch_val = 0;typedef void (*func_t)(void);volatilefloat k, b;float SpeedDiffCoeff2(float servoduty){ return k / 1000 * fabsf(servoduty) + b;}void PortEHandler(void){ PORT_FUNC(E, 27, nrf_handler);} 上一篇:PCB抄板单片机读写24C02与24C32的不同 下一篇:PCB抄板HC32L17X 系列低功耗模式调试