Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Boboobooo by
camera_api.h
00001 #include "bx-adc.h" 00002 #include "mbed.h" 00003 00004 00005 //cause same si and clk camR ,camL are synchronous 00006 00007 class BX_camera{ 00008 00009 public: 00010 00011 //static 00012 void read(void); //block in here 00013 00014 00015 00016 00017 BX_camera(); 00018 00019 00020 int black_centerR(void); //index 0~127 00021 int black_centerL(void); 00022 00023 00024 char sign_line_imageL[128]; 00025 char sign_line_imageR[128]; 00026 00027 00028 00029 private: 00030 00031 FastAnalogIn* line_CamR; 00032 FastAnalogIn* line_CamL; 00033 DigitalOut* cam_clk; 00034 DigitalOut* si; 00035 00036 unsigned int line_imageR[128]; //may buffer 00037 unsigned int line_imageL[128]; 00038 00039 00040 int w_f_vL; 00041 int b_f_vL; 00042 00043 int w_f_vR; 00044 int b_f_vR; 00045 00046 00047 00048 00049 00050 00051 00052 };
Generated on Wed Jul 20 2022 19:27:32 by
1.7.2
