• cubeIDE开发,在LCD显示摄像头抓取的图片数据


    目录

    一、摄像头相关资料信息

    二、 基于旧(.ioc)创建新工程

      三、配置与Camera相关的MCU引脚

    四、Camera源码设计

             1、gc0329 型号芯片数据手册分析

      2.程序代码设计

    五、编辑及测试


    一、摄像头相关资料信息

            在LCD上显示当前camera的图像数据,类似我们前面提到的LCD显示图片数据,就是实时将摄像头抓取的视频数据帧(图片)转换成图片字码表,即LCD宽*LCD高像素大小的颜色点阵,然后推送到LCD接口实现刷新显示。

            本博文使用的是STM32L496VGT3开发板进行测试,该开发板自带了Camera摄像头,采用DCMI 接口与MCU通信,Camera 是由深圳影领电子有限公司提供的 YL-F170066-0329.采用的是 8bits 数据接口,通过 24Pin BTB 连接器外接一个 Camera 模组。Camera 配置通过 I2C3 接入 MCU,地址为 0x78/0x79。BTB 连接器的接口定义如下表:

             即对于Camera 下行指令是采用I2C通信,视频数据推送给MCU采用的是DCMI 通信。Camera 的硬件原理框图如下:

             各个引脚相关参数:

    二、 基于旧(.ioc)创建新工程

            本文基于本专栏前面的LCD显示图片博文上进行创建新工程,并将其源码移植到新工程,然后在此基础上进行Camera相关配置及源码实现。

            cubeIDE开发,结合图片取模工具,stm32程序在LCD显示图片_py_free的博客-CSDN博客

            【1】在CubeIDE工作空间,创建一个stm32L496VGTx_cam的目录文件,将前面LCD显示图片工程的(stm32L496VGTx_lcm.ioc)拷贝到该目录下,并改名为stm32L496VGTx_cam.ioc.

            【2】打开cubeIDE开发工具,选择Create a New STM32 Project from an Existing STM32CubeMX Configuration File(.ioc)新建一个工程

             【2】选择刚刚拷贝并修改了名字的(.ioc)文件,在工程配置属性页面中,将工程名称及工程存放路径设置为刚刚新建文件夹的路径,完成工程创建。

             【4】创建工程后,在工程目录下新建一个ICore源文件夹,将原来stm32L496VGTx_lcm工程的ICore源码文件目录拷贝覆盖该文件夹。同时,也可将原来工程有过调整的spi.c和main.c文件拷贝覆盖到新工程文件中,同样,禁止syscalls.c编译。设置项目编译输出支持bin和hex格式。

             然后点击编译,成功通过编译,妥妥的是上次博文中实现的工程,只是更换了个工程名字而已。

      三、配置与Camera相关的MCU引脚

            在成功移植LCD显示图片工程后,双击stm32L496VGTx_cam.ioc打开cubeMX编辑界面,按上述的引脚要求配置MCU与Camera相关引脚。

            【1】开启I2C3的功能,参数保持默认设置即可

             I2C3的引脚相关配置如下:

            【2】开启DCMI功能 ,参数设置如下。

             添加DCMI的DMA功能支持

             并开启DCMI的终端功能支持

             DCMI相关引脚配置如下:

             【3】开启Camera辅助功能的GPIO引脚接口(PB8、PE13配置,与上面开发板给出的引脚参数资料不同)

             PA8引脚配置

             完成配置后点击保存输出生成代码。

    四、Camera源码设计

            在ICore中添加一个cam目录,并在该目录下创建Camera.h和Camera.c源文件。图形编辑配置界面生成代码及手动添加代码结构如下。

             1、gc0329 型号芯片数据手册分析

            本Camera模组的MCU芯片是gc0329 型号芯片,我在网上查阅该型号的数据手册及逐项分析如下:

            【1】Camera模组参数从设备地址0X62/3,非开发板指出的0x78/0x79

             gc0329芯片支持I2C接口控制信号设计如下:

             PWDN 与 RESET 均是异步设计,生效时不需要 MCLK pin 有时钟提供。PWDN 高有效,Low -> 正常工作,High -> 省电模式;RESET 低有效,Low -> reset 芯片,High -> 正常工作

            设帧同步信号 Vsync 低有效,行同步 Hsync 为高有效,而图像输出格式为 YCbCr 或 RGB565。例如我们在LCD显示图像时,图片转换工具了设置16位真彩的RGB565格式一样。

             GC0329 采用逐行扫描的方式将阵列产生的信号依次输入到模拟信号处理模块中。最开始的
    行为 0 行。在默认寄存器设置下,Sensor 的阵列数据输出顺序为从下到上,从左到右。图像扫描的方式输出设置地址为0X17。


            【2】模拟转换地址(analog PWC)0XFC,将寄存器 0xfc[0]置 1,0xf0 写为 0x00。此方式同样降低功耗,输出 pin 高阻,寄存器值保持不变。此时寄存器是可以读写的。要恢复 normal 工作模式,需要将 0xfc[0]置 0,0xf0 写为 0xff。芯片内部寄存器复位默认值有两种方式:1) RESET pin 接入低电平;2) 将寄存器 0xfe[7]置 1。      

            更多输出使能控制。

    1. VSync output enable 0xf0[0] 控制 VSYNC pin 输出
    2. 0 –> VSYNC pin 高阻
    3. 1 –> VSYNC pin 正常输出
    4. HSync output enable 0xf0[1] 控制 HSYNC pin 输出
    5. 0 –> HSYNC pin 高阻
    6. 1 –> HSYNC pin 正常输出
    7. PCLK output enable 0xf0[2] 控制 PCLK pin 输出
    8. 0 –> PCLK pin 高阻
    9. 1 –> PCLK pin 正常输出
    10. Pixel data[7:0] output enable 0xf0[3] 控制 data pin 输出
    11. 0 –> data pin 高阻
    12. 1 –> data pin 正常输出

            寄存器相关信息,设备ID存储地址为0X00。page 选择由 P0:0xfe[1:0]设置,设为 0x00 表示page0,设为 0x01 表示 page1 。

            【3】输出PIN驱动能力,PCLK PIN 、Data PIN、SYNC PIN的设置

             【4】时钟预分频,外部 MCLK 时钟输入后,通过 clock divider 模块对 MCLK 进行分频,芯片内部工作频率基于分频后的频率。

             【5】同步模式设置,VSYNC 为场同步信号,HSYNC 为行同步信号,PCLK 为输出 data 的同步时钟,可以通过寄存器0X46来控制这三个信号的极性。

             【6】GC0329 可以截取任意尺寸(≤VGA)的窗口输出,且有两种模式实现窗口输出,这两种模式输出小于 VGA 窗口时,视角均会变小。

             Windowing 模式,用 column start 和 row start 来分别确定要挖窗口起始的 X/Y 坐标,用 window width-8 和 window height-8(注意寄存器设置要比实际输出多 8)来确定所需要窗口的宽度和高度。

            Crop window 模式,用 Out window x0 和 Out window y0 来分别确定要挖窗口
    起始的 X/Y 坐标,用 Out window width 和 Out window height 来确定所需要窗口的宽度和
    高度。

            subsample 模式,如果要实现视角不变输出 QVGA/QQVGA/CIF/QCIF等窗口,需要用到 subsample 模式,在 windowing(0x09-0x10 寄存器)确定好图像窗口尺寸后,采用抽点的
    方式输出更小尺寸的数据,最终输出图像尺寸的行/列可以为设定窗口行/列的 1/2, 1/3, 1/4,
    1/5, 1/6, 1/7(表示行为原始尺寸的 1/7,列也为原始尺寸的 1/7),同时也能实现 3/5,2/3,
    4/7 等采样率。例如下图设置示例(P0:0x5a 表示 0x5a 寄存器是 page0 的)。

             【7】在 GC0329 中,消除灯管频率导致的 flicker 问题,需要同时配置 exposure step register(P1:0x03,P1;0x04)Hb({P0:0x05,P0:0x06}),Vb({P0:0x07,P0:0x08}),exp_level(P1:0x2b~0x32)来实现。消除 flicker 的原理即是曝光时间是灯管周期的整数倍。
    计算方法为: step * row_time = N * T。

             可以配置 4 档 Exp_level,用户可以通过修改 P1:0x33[5:4]来设置用哪一档 exp_level(范围为 0-3),设置完成后,AEC 最大曝光时间只能达到 exp_level 所设定的值,从而达到控制帧率的目的。Exp_level 的配置只要用是所计算出来的 step 的整数倍即可,可按照想要的帧率配置,每个 level 需要配两个寄存器,如 0xe4[3:0]为高位,0xe5 为低位。

             【8】输出模式设置

            YUV/RGB565 输出设置及RawRGB 输出设置:

             自动曝光控制(Auto Exposure Control)设置

    1. Function Address Value Description
    2. AEC enable P0:0x4f[0] 1’b0 使能 AEC 模块
    3. Target Y P1:0x13 0x50 AEC 目标亮度值
    4. AEC action period P1:0x11[6:4] 2’b3 AEC 每隔几帧调一次
    5. Exp level P1:0x2b-0x32 -- 配置曝光等级,具体见 4.6.2
    6. Max exp level P1:0x33[5:4] -- 选择曝光等级 0~3 中的一档
    7. Exp min P1:0x34 0x04 设置 AEC 自动调节的最小值
    8. Auto pre gain P0:0x71 -- AEC 使能时,为只读。
    9. Auto post gain P0:0x72 -- AEC 不使能时,可读写。
    10. Pre gain limit P1:0x22 0x40 Auto_pre_gain 的最大值。
    11. Post gain limit P1:0x21 0x80 Auto_post_gain 的最大值。

             自动白平衡(Auto White Balance)设置

    1. Function Address Value Description
    2. AWB enable P0:0x42[1] 1’b0 使能 AWB 模块
    3. AWB_R_gain P0:0x77 -- AWB 使能时,为只读。
    4. AWB 不使能时,可读写。
    5. AWB_G_gain P0:0x78 --
    6. AWB_B_gain P0:0x79 --
    7. AWB_R_gain_limit P1:0x67 0x80 AWB 中 R 通道的增益限制
    8. AWB_G_gain_limit P1:0x68 0x80 AWB 中 G 通道的增益限制
    9. AWB_B_gain_limit P1:0x69 0x80 AWB 中 B 通道的增益限制
    10. AWB action period P1: 0x5d[5:4] 1’b0 AWB 每隔几帧调一次。
    11. R_ratio P0:0x7a 0x80 做完 AWB 后 R 通道所乘的增益,0x80 为 1 倍增益。
    12. G_ratio P0:0x7b 0x80 做完 AWB 后 R 通道所乘的增益,0x80 为 1 倍增益。
    13. B_ratio P0:0x7c 0x80 做完 AWB 后 B 通道所乘的增益,0x80 为 1 倍增益。

            以及镜头阴影补偿(Lens Shading Compensation)、去坏点(Delete defective points)、去噪(Denoise)、边缘加强(Edge Enhancement)、饱和度、对比度、特效参数、Gamma 调整、色彩矩阵(Color Matrix)等摄像头图像输出相关设置就不逐一列举。

      2.程序代码设计

            【1】伪代码实现设计

    1. 从机地址:0X62/0X63
    2. Init
    3. 拉低CAM_PD,拉高CAM_RST
    4. 向 0xfe 写入 设置值
    5. 向 0xfc 写入 设置值
    6. 向 0x00 读取 CHIPID 验证是否==0XC0
    7. 进行 摄像头参数设置:
    8. (analog、blk、ISP、DNDD、INTPEE、ASDE、RGB-gamma、Y-gamma、YCP、AEC、ABS、AWB、LSC、flicker、输出等)
    9. 进行 LCD显示输出配置(VGA-DCMI)
    10. 启动DCMI抓取数据及写入DMA
    11. 刷新显示
    12. DCMI回调,调用LCD显示函数进行屏幕刷新显示

            【2】依据上述分析及伪代码设计,给出camera.h和camera.c源码

    1. #ifndef __GC0329_H
    2. #define __GC0329_H
    3. #include "main.h"
    4. #include "dcmi.h"
    5. #include "i2c.h"
    6. #include "gpio.h"
    7. #include "../oled/oled.h"
    8. #define GC0329_I2CADDR 0X62
    9. #define GC0329_ID 0xC0
    10. #define GC0329_CHIPID 0x00
    11. /* GC0329 Registers definition */
    12. #define GC0329_SENSOR_PIDH 0x00
    13. #define GC0329_SENSOR_PIDL 0x0B
    14. #define GC0329_SENSOR_COM7 0x12
    15. #define GC0329_SENSOR_TSLB 0x3A
    16. #define GC0329_SENSOR_MTX1 0x4F
    17. #define GC0329_SENSOR_MTX2 0x50
    18. #define GC0329_SENSOR_MTX3 0x51
    19. #define GC0329_SENSOR_MTX4 0x52
    20. #define GC0329_SENSOR_MTX5 0x53
    21. #define GC0329_SENSOR_MTX6 0x54
    22. #define GC0329_SENSOR_BRTN 0x55
    23. #define GC0329_SENSOR_CNST1 0x56
    24. #define GC0329_SENSOR_CNST2 0x57
    25. /**
    26. * @brief GC0329 Features Parameters
    27. */
    28. #define GC0329_BRIGHTNESS_LEVEL0 0xB0 /* Brightness level -2 */
    29. #define GC0329_BRIGHTNESS_LEVEL1 0x98 /* Brightness level -1 */
    30. #define GC0329_BRIGHTNESS_LEVEL2 0x00 /* Brightness level 0 */
    31. #define GC0329_BRIGHTNESS_LEVEL3 0x18 /* Brightness level +1 */
    32. #define GC0329_BRIGHTNESS_LEVEL4 0x30 /* Brightness level +2 */
    33. #define GC0329_BLACK_WHITE_BW 0xCC000000000000 /* Black and white effect */
    34. #define GC0329_BLACK_WHITE_NEGATIVE 0xEC808000008080 /* Negative effect */
    35. #define GC0329_BLACK_WHITE_BW_NEGATIVE 0xEC000000000000 /* BW and Negative effect */
    36. #define GC0329_BLACK_WHITE_NORMAL 0xCC808000008080 /* Normal effect */
    37. #define GC0329_CONTRAST_LEVEL0 0x30 /* Contrast level -2 */
    38. #define GC0329_CONTRAST_LEVEL1 0x38 /* Contrast level -1 */
    39. #define GC0329_CONTRAST_LEVEL2 0x40 /* Contrast level 0 */
    40. #define GC0329_CONTRAST_LEVEL3 0x50 /* Contrast level +1 */
    41. #define GC0329_CONTRAST_LEVEL4 0x60 /* Contrast level +2 */
    42. #define GC0329_COLOR_EFFECT_NONE 0xCC808000008080 /* No color effect */
    43. #define GC0329_COLOR_EFFECT_ANTIQUE 0xCC000020F00000 /* Antique effect */
    44. #define GC0329_COLOR_EFFECT_BLUE 0xCC000000000060 /* Blue effect */
    45. #define GC0329_COLOR_EFFECT_GREEN 0xCC000000008000 /* Green effect */
    46. #define GC0329_COLOR_EFFECT_RED 0xCC600000000000 /* Red effect */
    47. #define CAMERA_R160x120 0x00 /* QQVGA Resolution */
    48. #define CAMERA_R320x240 0x01 /* QVGA Resolution */
    49. #define CAMERA_R480x272 0x02 /* 480x272 Resolution */
    50. #define CAMERA_R640x480 0x03 /* VGA Resolution */
    51. #define CAMERA_CONTRAST_BRIGHTNESS 0x00 /* Camera contrast brightness features */
    52. #define CAMERA_BLACK_WHITE 0x01 /* Camera black white feature */
    53. #define CAMERA_COLOR_EFFECT 0x03 /* Camera color effect feature */
    54. #define CAMERA_BRIGHTNESS_LEVEL0 0x00 /* Brightness level -2 */
    55. #define CAMERA_BRIGHTNESS_LEVEL1 0x01 /* Brightness level -1 */
    56. #define CAMERA_BRIGHTNESS_LEVEL2 0x02 /* Brightness level 0 */
    57. #define CAMERA_BRIGHTNESS_LEVEL3 0x03 /* Brightness level +1 */
    58. #define CAMERA_BRIGHTNESS_LEVEL4 0x04 /* Brightness level +2 */
    59. #define CAMERA_CONTRAST_LEVEL0 0x05 /* Contrast level -2 */
    60. #define CAMERA_CONTRAST_LEVEL1 0x06 /* Contrast level -1 */
    61. #define CAMERA_CONTRAST_LEVEL2 0x07 /* Contrast level 0 */
    62. #define CAMERA_CONTRAST_LEVEL3 0x08 /* Contrast level +1 */
    63. #define CAMERA_CONTRAST_LEVEL4 0x09 /* Contrast level +2 */
    64. #define CAMERA_BLACK_WHITE_BW 0x00 /* Black and white effect */
    65. #define CAMERA_BLACK_WHITE_NEGATIVE 0x01 /* Negative effect */
    66. #define CAMERA_BLACK_WHITE_BW_NEGATIVE 0x02 /* BW and Negative effect */
    67. #define CAMERA_BLACK_WHITE_NORMAL 0x03 /* Normal effect */
    68. #define CAMERA_COLOR_EFFECT_NONE 0x00 /* No effects */
    69. #define CAMERA_COLOR_EFFECT_BLUE 0x01 /* Blue effect */
    70. #define CAMERA_COLOR_EFFECT_GREEN 0x02 /* Green effect */
    71. #define CAMERA_COLOR_EFFECT_RED 0x03 /* Red effect */
    72. #define CAMERA_COLOR_EFFECT_ANTIQUE 0x04 /* Antique effect */
    73. /**
    74. * @}
    75. */
    76. typedef struct
    77. {
    78. void (*Init)(uint16_t, uint32_t);
    79. uint16_t (*ReadID)(uint16_t);
    80. void (*Config)(uint16_t, uint32_t, uint32_t, uint32_t);
    81. } CAMERA_DrvTypeDef;
    82. //void gc0329_mclk_onoff(int on);
    83. void gc0329_power_onoff(int on);
    84. void gc0329_Init(uint16_t DeviceAddr, uint32_t resolution);
    85. void gc0329_Config(uint16_t DeviceAddr, uint32_t feature, uint32_t value, uint32_t BR_value);
    86. uint16_t gc0329_ReadID(uint16_t dummy);
    87. uint64_t gc0329_ConvertValue(uint32_t feature, uint32_t value);
    88. /* CAMERA driver structure */
    89. extern CAMERA_DrvTypeDef gc0329_drv;
    90. extern DCMI_HandleTypeDef hdcmi;
    91. void enable_camera_display(uint8_t on);
    92. void CAMERA_Init(uint32_t Resolution);
    93. void CameraDEMO_Init();
    94. void enable_camera_display(uint8_t on);
    95. int CameraHAL_Capture_Start(uint8_t * buf, uint32_t len, void(*notify)());
    96. #endif //__GC0329_H

            camera.c

    1. #include "camera.h"
    2. #include
    3. #include
    4. extern I2C_HandleTypeDef hi2c3;
    5. CAMERA_DrvTypeDef *camera_drv;
    6. DCMI_HandleTypeDef *phdcmi;
    7. uint16_t *camera_buff = NULL;
    8. static void(*pCapFunc)() = 0;
    9. CAMERA_DrvTypeDef gc0329_drv =
    10. {
    11. gc0329_Init,
    12. gc0329_ReadID,
    13. gc0329_Config,
    14. };
    15. /* Initialization sequence for VGA resolution (640x480)*/
    16. const unsigned char GC0329_VGA[][2] =
    17. {
    18. {0xfe, 0x80},
    19. {0xfc, 0x16},
    20. {0xfc, 0x16},
    21. {0xfe, 0x00},
    22. {0xfa, 0x00},
    23. {0x70, 0x48},
    24. {0x73, 0x90},
    25. {0x74, 0x80},
    26. {0x75, 0x80},
    27. {0x76, 0x94}, //80 jambo
    28. {0x77, 0x62},
    29. {0x78, 0x47},
    30. {0x79, 0x40},
    31. {0x03, 0x02},
    32. {0x04, 0x40},
    33. analog
    34. {0xfc, 0x16},
    35. {0x09, 0x00},
    36. {0x0a, 0x02},
    37. {0x0b, 0x00},
    38. {0x0c, 0x02},
    39. #ifndef CAMERA_GRAY_MIRROR
    40. {0x17, 0x15}, //0x14
    41. #endif
    42. {0x19, 0x05},
    43. {0x1b, 0x24},
    44. {0x1c, 0x04},
    45. {0x1e, 0x08},
    46. {0x1f, 0x08}, //C8
    47. {0x20, 0x01},
    48. {0x21, 0x48},
    49. {0x22, 0xba},
    50. {0x23, 0x22},
    51. {0x24, 0x16},
    52. blk
    53. added for MID
    54. {0x26, 0xf4}, //BLK
    55. {0x2a, 0x2c},
    56. {0x2b, 0x2c},
    57. {0x2c, 0x2c},
    58. {0x2d, 0x2c},
    59. {0x26, 0xf7}, //BLK
    60. {0x28, 0x7f}, //BLK limit
    61. {0x29, 0x00},
    62. {0x32, 0x00}, //04 darkc
    63. {0x33, 0x20}, //blk ratio
    64. {0x34, 0x20},
    65. {0x35, 0x20},
    66. {0x36, 0x20},
    67. {0x3b, 0x04}, //manual offset
    68. {0x3c, 0x04},
    69. {0x3d, 0x04},
    70. {0x3e, 0x04},
    71. ISP BLOCK ENABLE
    72. {0x40, 0xff},
    73. {0x41, 0x24}, //[5]skin detection
    74. {0x42, 0xfa}, //disable ABS
    75. {0x46, 0x03},
    76. {0x4b, 0xca},
    77. {0x4d, 0x01},
    78. {0x4f, 0x01},
    79. {0x70, 0x48},
    80. DNDD
    81. {0x80, 0x07}, // 0xe7 20140915
    82. {0x81, 0xc2}, // 0x22 20140915
    83. {0x82, 0x90}, //DN auto DNDD DEC DNDD //0e //55 jambo
    84. {0x83, 0x05},
    85. {0x87, 0x40}, // 0x4a 20140915
    86. INTPEE
    87. {0x90, 0x8c}, //ac
    88. {0x92, 0x05},
    89. {0x94, 0x05},
    90. {0x95, 0x45}, //0x44
    91. {0x96, 0x88},
    92. ASDE
    93. {0xfe, 0x01},
    94. {0x18, 0x22},
    95. {0xfe, 0x00},
    96. {0x9c, 0x0a},
    97. {0xa0, 0xaf},
    98. {0xa2, 0xff},
    99. {0xa4, 0x30}, //50 jambo
    100. {0xa5, 0x31},
    101. {0xa7, 0x35},
    102. RGB gamma
    103. {0xfe, 0x00},
    104. {0xbf, 0x0b},
    105. {0xc0, 0x1d},
    106. {0xc1, 0x33},
    107. {0xc2, 0x49},
    108. {0xc3, 0x5d},
    109. {0xc4, 0x6e},
    110. {0xc5, 0x7c},
    111. {0xc6, 0x99},
    112. {0xc7, 0xaf},
    113. {0xc8, 0xc2},
    114. {0xc9, 0xd0},
    115. {0xca, 0xda},
    116. {0xcb, 0xe2},
    117. {0xcc, 0xe7},
    118. {0xcd, 0xf0},
    119. {0xce, 0xf7},
    120. {0xcf, 0xff},
    121. Y gamma
    122. {0xfe, 0x00},
    123. {0x63, 0x00},
    124. {0x64, 0x06},
    125. {0x65, 0x0d},
    126. {0x66, 0x1b},
    127. {0x67, 0x2b},
    128. {0x68, 0x3d},
    129. {0x69, 0x50},
    130. {0x6a, 0x60},
    131. {0x6b, 0x80},
    132. {0x6c, 0xa0},
    133. {0x6d, 0xc0},
    134. {0x6e, 0xe0},
    135. {0x6f, 0xff},
    136. //CC///
    137. #if 1 //main
    138. {0xfe, 0x00},
    139. {0xb3, 0x44},
    140. {0xb4, 0xfd},
    141. {0xb5, 0x02},
    142. {0xb6, 0xfa},
    143. {0xb7, 0x48},
    144. {0xb8, 0xf0},
    145. #else //sub
    146. {0xfe, 0x00},
    147. {0xb3, 0x42}, //40
    148. {0xb4, 0xff}, //00
    149. {0xb5, 0x06}, //06
    150. {0xb6, 0xf0}, //00
    151. {0xb7, 0x44}, //40
    152. {0xb8, 0xf0}, //00
    153. #endif
    154. // crop
    155. {0x50, 0x01},
    156. YCP
    157. {0xfe, 0x00},
    158. {0xd0, 0x40},
    159. {0xd1, 0x28},
    160. {0xd2, 0x28},
    161. {0xd3, 0x40}, //cont 0x40
    162. {0xd5, 0x00},
    163. {0xdd, 0x14},
    164. {0xde, 0x34},
    165. AEC
    166. {0xfe, 0x01},
    167. {0x10, 0x40}, // before Gamma
    168. {0x11, 0x21}, //
    169. {0x12, 0x13}, // center weight *2
    170. {0x13, 0x50}, //4 //4}, // AE Target
    171. #ifdef CAMERA_GRAY_MIRROR
    172. {0x17, 0xa9}, //88, 08, c8, a8
    173. #else
    174. {0x17, 0xa8}, //88, 08, c8, a8
    175. #endif
    176. {0x1a, 0x21},
    177. {0x20, 0x31}, //AEC stop margin
    178. {0x21, 0xc0},
    179. {0x22, 0x60},
    180. {0x3c, 0x50},
    181. {0x3d, 0x40},
    182. {0x3e, 0x45}, //read 3f for status
    183. //main
    184. {0xfe, 0x01},
    185. {0x06, 0x12},
    186. {0x07, 0x06},
    187. {0x08, 0x9c},
    188. {0x09, 0xee},
    189. {0x50, 0xfc},
    190. {0x51, 0x28},
    191. {0x52, 0x10},
    192. {0x53, 0x20},
    193. {0x54, 0x12},
    194. {0x55, 0x16},
    195. {0x56, 0x30},
    196. {0x58, 0x60},
    197. {0x59, 0x08},
    198. {0x5a, 0x02},
    199. {0x5b, 0x63},
    200. {0x5c, 0x35},
    201. {0x5d, 0x72},
    202. {0x5e, 0x11},
    203. {0x5f, 0x40},
    204. {0x60, 0x40},
    205. {0x61, 0xc8},
    206. {0x62, 0xa0},
    207. {0x63, 0x40},
    208. {0x64, 0x50},
    209. {0x65, 0x98},
    210. {0x66, 0xfa},
    211. {0x67, 0x80},
    212. {0x68, 0x60},
    213. {0x69, 0x90},
    214. {0x6a, 0x40},
    215. {0x6b, 0x39},
    216. {0x6c, 0x30},
    217. {0x6d, 0x60},
    218. {0x6e, 0x41},
    219. {0x70, 0x10},
    220. {0x71, 0x00},
    221. {0x72, 0x10},
    222. {0x73, 0x40},
    223. {0x80, 0x60},
    224. {0x81, 0x50},
    225. {0x82, 0x42},
    226. {0x83, 0x40},
    227. {0x84, 0x40},
    228. {0x85, 0x40},
    229. {0x74, 0x40},
    230. {0x75, 0x58},
    231. {0x76, 0x24},
    232. {0x77, 0x40},
    233. {0x78, 0x20},
    234. {0x79, 0x60},
    235. {0x7a, 0x58},
    236. {0x7b, 0x20},
    237. {0x7c, 0x30},
    238. {0x7d, 0x35},
    239. {0x7e, 0x10},
    240. {0x7f, 0x08},
    241. ///ABS///
    242. {0x9c, 0x00},
    243. {0x9e, 0xc0},
    244. {0x9f, 0x40},
    245. CC-AWB
    246. {0xd0, 0x00},
    247. {0xd2, 0x2c},
    248. {0xd3, 0x80},
    249. ///LSC //
    250. {0xfe, 0x01},
    251. {0xc0, 0x0b},
    252. {0xc1, 0x07},
    253. {0xc2, 0x05},
    254. {0xc6, 0x0b},
    255. {0xc7, 0x07},
    256. {0xc8, 0x05},
    257. {0xba, 0x39},
    258. {0xbb, 0x24},
    259. {0xbc, 0x23},
    260. {0xb4, 0x39},
    261. {0xb5, 0x24},
    262. {0xb6, 0x23},
    263. {0xc3, 0x00},
    264. {0xc4, 0x00},
    265. {0xc5, 0x00},
    266. {0xc9, 0x00},
    267. {0xca, 0x00},
    268. {0xcb, 0x00},
    269. {0xbd, 0x2b},
    270. {0xbe, 0x00},
    271. {0xbf, 0x00},
    272. {0xb7, 0x09},
    273. {0xb8, 0x00},
    274. {0xb9, 0x00},
    275. {0xa8, 0x31},
    276. {0xa9, 0x23},
    277. {0xaa, 0x20},
    278. {0xab, 0x31},
    279. {0xac, 0x23},
    280. {0xad, 0x20},
    281. {0xae, 0x31},
    282. {0xaf, 0x23},
    283. {0xb0, 0x20},
    284. {0xb1, 0x31},
    285. {0xb2, 0x23},
    286. {0xb3, 0x20},
    287. {0xa4, 0x00},
    288. {0xa5, 0x00},
    289. {0xa6, 0x00},
    290. {0xa7, 0x00},
    291. {0xa1, 0x3c},
    292. {0xa2, 0x50},
    293. {0xfe, 0x00},
    294. flicker ///
    295. {0x05, 0x02},
    296. {0x06, 0x2c},
    297. {0x07, 0x00},
    298. {0x08, 0xb8},
    299. {0xfe, 0x01},
    300. {0x29, 0x00}, //anti-flicker step [11:8]
    301. {0x2a, 0x60}, //anti-flicker step [7:0]
    302. {0x2b, 0x02}, //exp level 0 14.28fps
    303. {0x2c, 0xa0},
    304. {0x2d, 0x03}, //exp level 1 12.50fps
    305. {0x2e, 0x00},
    306. {0x2f, 0x03}, //exp level 2 10.00fps
    307. {0x30, 0xc0},
    308. {0x31, 0x05}, //exp level 3 7.14fps
    309. {0x32, 0x40},
    310. {0x33, 0x20},
    311. {0xfe, 0x00},
    312. out ///
    313. #ifdef CAMERA_GRAY_MIRROR
    314. {0x44, 0xB1},
    315. #else
    316. {0x44, 0xA6},
    317. #endif
    318. {0xf0, 0x07},
    319. {0xf1, 0x01},
    320. };
    321. /* Initialization sequence for QVGA resolution (320x240) */
    322. const unsigned char GC0329_QVGA[][2] =
    323. {
    324. {0xff, 0xff},
    325. };
    326. /* Initialization sequence for QQVGA resolution (160x120) */
    327. const char GC0329_QQVGA[][2] =
    328. {
    329. {0xff, 0xff},
    330. };
    331. //void gc0329_mclk_onoff(int on)
    332. //{
    333. // RCC_OscInitTypeDef RCC_OscInitStruct;
    334. //
    335. // /*xiehj add RCC_OSCILLATORTYPE_HSI48*/
    336. // RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48;
    337. //
    338. // /*xiehj add*/
    339. // if(on)
    340. // RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
    341. // else
    342. // RCC_OscInitStruct.HSI48State = RCC_HSI48_OFF;
    343. //
    344. // if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
    345. // {
    346. //
    347. // }
    348. //}
    349. void gc0329_power_onoff(int on)
    350. {
    351. if(1 == on)
    352. {
    353. HAL_GPIO_WritePin(CAM_PD_GPIO_Port, CAM_PD_Pin, GPIO_PIN_RESET);
    354. HAL_Delay(10);
    355. HAL_GPIO_WritePin(CAM_RST_GPIO_Port, CAM_RST_Pin, GPIO_PIN_RESET);
    356. HAL_Delay(50);
    357. HAL_GPIO_WritePin(CAM_RST_GPIO_Port, CAM_RST_Pin, GPIO_PIN_SET);
    358. }
    359. else
    360. {
    361. HAL_GPIO_WritePin(CAM_RST_GPIO_Port, CAM_RST_Pin, GPIO_PIN_RESET);
    362. HAL_Delay(50);
    363. HAL_GPIO_WritePin(CAM_PD_GPIO_Port, CAM_PD_Pin, GPIO_PIN_SET);
    364. }
    365. }
    366. uint8_t CAMERA_IO_Read(uint8_t DevAddr, uint8_t Reg)
    367. {
    368. uint8_t read_value = 0;
    369. HAL_StatusTypeDef i2c3_status = 0X00;
    370. // i2c3_status = HAL_I2C_Mem_Read_IT(&hi2c3, DevAddr, Reg, I2C_MEMADD_SIZE_8BIT, (uint8_t *)&read_value, 1);
    371. i2c3_status = HAL_I2C_Mem_Read(&hi2c3, DevAddr, Reg, I2C_MEMADD_SIZE_8BIT, (uint8_t *)&read_value, 1, 1000);
    372. if(HAL_OK != i2c3_status)
    373. {
    374. printf("[1]CAMERA_IO_Read error HAL_StatusTypeDef(0x%02x) ErrorCode(%lu) State(%u) \r\n"
    375. ,i2c3_status,hi2c3.ErrorCode,hi2c3.State);
    376. return read_value ;
    377. }
    378. return read_value;
    379. }
    380. uint8_t CAMERA_IO_Write(uint8_t DevAddr, uint8_t Reg, uint8_t Value)
    381. {
    382. HAL_StatusTypeDef i2c3_status = 0X00;
    383. // i2c3_status = HAL_I2C_Mem_Write_IT(&hi2c3, DevAddr, Reg, I2C_MEMADD_SIZE_8BIT, (uint8_t *)&Value, 1);
    384. i2c3_status = HAL_I2C_Mem_Write(&hi2c3, DevAddr, Reg, I2C_MEMADD_SIZE_8BIT, (uint8_t *)&Value, 1, 1000);
    385. if(HAL_OK != i2c3_status)
    386. {
    387. printf("1)CAMERA_IO_Write error HAL_StatusTypeDef(0x%02x) hi2c3.ErrorCode(%lu) hi2c3.State(%u)\r\n"
    388. ,i2c3_status,hi2c3.ErrorCode,hi2c3.State);
    389. return HAL_ERROR;
    390. }
    391. return HAL_OK ;
    392. }
    393. uint16_t gc0329_ReadID(uint16_t dummy)
    394. {
    395. /* Get the camera ID */
    396. // CAMERA_IO_Write(0xfe, 0x00);
    397. // CAMERA_IO_Write(GC0329_I2CADDR,0xfe, 0x48);
    398. CAMERA_IO_Write(GC0329_I2CADDR,0xfc, 0x16);
    399. return (CAMERA_IO_Read(GC0329_I2CADDR, GC0329_CHIPID));
    400. }
    401. void gc0329_Init(uint16_t DeviceAddr, uint32_t resolution)
    402. {
    403. uint32_t index;
    404. /* Initialize GC0329 */
    405. switch (resolution)
    406. {
    407. case CAMERA_R160x120:
    408. {
    409. for(index = 0; index < (sizeof(GC0329_QQVGA) / 2); index++)
    410. {
    411. CAMERA_IO_Write(DeviceAddr, GC0329_QQVGA[index][0], GC0329_QQVGA[index][1]);
    412. HAL_Delay(2);
    413. }
    414. break;
    415. }
    416. case CAMERA_R320x240:
    417. {
    418. for(index = 0; index < (sizeof(GC0329_QVGA) / 2); index++)
    419. {
    420. CAMERA_IO_Write(DeviceAddr, GC0329_QVGA[index][0], GC0329_QVGA[index][1]);
    421. HAL_Delay(2);
    422. }
    423. break;
    424. }
    425. case CAMERA_R480x272:
    426. {
    427. /* Not supported resolution */
    428. break;
    429. }
    430. case CAMERA_R640x480:
    431. {
    432. for(index = 0; index < (sizeof(GC0329_VGA) / 2); index++)
    433. {
    434. CAMERA_IO_Write(DeviceAddr, GC0329_VGA[index][0], GC0329_VGA[index][1]);
    435. HAL_Delay(2);
    436. }
    437. break;
    438. }
    439. default:
    440. {
    441. break;
    442. }
    443. }
    444. }
    445. void gc0329_Config(uint16_t DeviceAddr, uint32_t feature, uint32_t value, uint32_t brightness_value)
    446. {
    447. /* Convert the input value into gc0329 parameters */
    448. gc0329_ConvertValue(feature, value);
    449. gc0329_ConvertValue(CAMERA_CONTRAST_BRIGHTNESS, brightness_value);
    450. }
    451. uint64_t gc0329_ConvertValue(uint32_t feature, uint32_t value)
    452. {
    453. // uint64_t ret = 0;
    454. return 0;
    455. #if 0
    456. switch(feature)
    457. {
    458. case CAMERA_BLACK_WHITE:
    459. {
    460. switch(value)
    461. {
    462. case CAMERA_BLACK_WHITE_BW:
    463. {
    464. ret = GC0329_BLACK_WHITE_BW;
    465. break;
    466. }
    467. case CAMERA_BLACK_WHITE_NEGATIVE:
    468. {
    469. ret = GC0329_BLACK_WHITE_NEGATIVE;
    470. break;
    471. }
    472. case CAMERA_BLACK_WHITE_BW_NEGATIVE:
    473. {
    474. ret = GC0329_BLACK_WHITE_BW_NEGATIVE;
    475. break;
    476. }
    477. case CAMERA_BLACK_WHITE_NORMAL:
    478. {
    479. ret = GC0329_BLACK_WHITE_NORMAL;
    480. break;
    481. }
    482. default:
    483. {
    484. ret = GC0329_BLACK_WHITE_NORMAL;
    485. break;
    486. }
    487. }
    488. break;
    489. }
    490. case CAMERA_CONTRAST_BRIGHTNESS:
    491. {
    492. switch(value)
    493. {
    494. case CAMERA_BRIGHTNESS_LEVEL0:
    495. {
    496. ret = GC0329_BRIGHTNESS_LEVEL0;
    497. break;
    498. }
    499. case CAMERA_BRIGHTNESS_LEVEL1:
    500. {
    501. ret = GC0329_BRIGHTNESS_LEVEL1;
    502. break;
    503. }
    504. case CAMERA_BRIGHTNESS_LEVEL2:
    505. {
    506. ret = GC0329_BRIGHTNESS_LEVEL2;
    507. break;
    508. }
    509. case CAMERA_BRIGHTNESS_LEVEL3:
    510. {
    511. ret = GC0329_BRIGHTNESS_LEVEL3;
    512. break;
    513. }
    514. case CAMERA_BRIGHTNESS_LEVEL4:
    515. {
    516. ret = GC0329_BRIGHTNESS_LEVEL4;
    517. break;
    518. }
    519. case CAMERA_CONTRAST_LEVEL0:
    520. {
    521. ret = GC0329_CONTRAST_LEVEL0;
    522. break;
    523. }
    524. case CAMERA_CONTRAST_LEVEL1:
    525. {
    526. ret = GC0329_CONTRAST_LEVEL1;
    527. break;
    528. }
    529. case CAMERA_CONTRAST_LEVEL2:
    530. {
    531. ret = GC0329_CONTRAST_LEVEL2;
    532. break;
    533. }
    534. case CAMERA_CONTRAST_LEVEL3:
    535. {
    536. ret = GC0329_CONTRAST_LEVEL3;
    537. break;
    538. }
    539. case CAMERA_CONTRAST_LEVEL4:
    540. {
    541. ret = GC0329_CONTRAST_LEVEL4;
    542. break;
    543. }
    544. default:
    545. {
    546. ret = GC0329_CONTRAST_LEVEL0;
    547. break;
    548. }
    549. }
    550. break;
    551. }
    552. case CAMERA_COLOR_EFFECT:
    553. {
    554. switch(value)
    555. {
    556. case CAMERA_COLOR_EFFECT_ANTIQUE:
    557. {
    558. ret = GC0329_COLOR_EFFECT_ANTIQUE;
    559. break;
    560. }
    561. case CAMERA_COLOR_EFFECT_BLUE:
    562. {
    563. ret = GC0329_COLOR_EFFECT_BLUE;
    564. break;
    565. }
    566. case CAMERA_COLOR_EFFECT_GREEN:
    567. {
    568. ret = GC0329_COLOR_EFFECT_GREEN;
    569. break;
    570. }
    571. case CAMERA_COLOR_EFFECT_RED:
    572. {
    573. ret = GC0329_COLOR_EFFECT_RED;
    574. break;
    575. }
    576. case CAMERA_COLOR_EFFECT_NONE:
    577. default:
    578. {
    579. ret = GC0329_COLOR_EFFECT_NONE;
    580. break;
    581. }
    582. }
    583. break;
    584. default:
    585. {
    586. ret = 0;
    587. break;
    588. }
    589. }
    590. }
    591. #endif
    592. // return ret;
    593. }
    594. uint8_t camera_dis_on = 0;
    595. void enable_camera_display(uint8_t on)
    596. {
    597. camera_dis_on = on;
    598. }
    599. void CAMERA_Init(uint32_t Resolution)
    600. {
    601. camera_drv = &gc0329_drv;
    602. phdcmi = &hdcmi;
    603. /* Camera Module Initialization via I2C to the wanted 'Resolution' */
    604. if (Resolution == CAMERA_R640x480)
    605. {
    606. /* For 240x240 resolution, the OV9655 sensor is set to QVGA resolution
    607. * as OV9655 doesn't supports 240x240 resolution,
    608. * then DCMI is configured to output a 240x240 cropped window */
    609. camera_drv->Init(GC0329_I2CADDR, CAMERA_R640x480);
    610. HAL_DCMI_ConfigCROP(phdcmi,
    611. 150, /* Crop in the middle of the VGA picture */
    612. 120, /* Same height (same number of lines: no need to crop vertically) */
    613. (WIDTH * 2) - 1, /* 2 pixels clock needed to capture one pixel */
    614. (HEIGHT * 1) - 1); /* All 240 lines are captured */
    615. HAL_DCMI_EnableCROP(phdcmi);
    616. }
    617. }
    618. void CameraDEMO_Init()
    619. {
    620. uint16_t buff[WIDTH * HEIGHT] = {LCD_DISP_BLUE};
    621. camera_buff = buff;
    622. // camera_dispaly(camera_buff, (WIDTH * HEIGHT));
    623. gc0329_power_onoff(1);
    624. uint8_t sensor_id = gc0329_ReadID(0);
    625. printf("camera sensor_id = 0x%02X\r\n", sensor_id);
    626. /* gc0329_power_onoff(0); */
    627. if (sensor_id == GC0329_ID)
    628. {
    629. CAMERA_Init(CAMERA_R640x480);
    630. /* Wait 1s to let auto-loops in the camera module converge and lead to correct exposure */
    631. /* aos_msleep(1000); */
    632. HAL_Delay(200);
    633. /*##-4- Camera Continuous capture start in QVGA resolution ############################*/
    634. /* Disable unwanted HSYNC (IT_LINE)/VSYNC interrupts */
    635. __HAL_DCMI_DISABLE_IT(phdcmi, DCMI_IT_LINE | DCMI_IT_VSYNC);
    636. /* LCD size is 240 x 240 and format is RGB565 i.e. 16 bpp or 2 bytes/pixel.
    637. The LCD frame size is therefore 240 * 240 half-words of (240*240)/2 32-bit long words .
    638. Since the DMA associated to DCMI IP is configured in BSP_CAMERA_MspInit() of stm32l496g_discovery_camera.c file
    639. with words alignment, the last parameter of HAL_DCMI_Start_DMA is set to:
    640. (ST7789H2_LCD_PIXEL_WIDTH*ST7789H2_LCD_PIXEL_HEIGHT)/2, that is 240 * 240 / 2
    641. */
    642. HAL_DCMI_Start_DMA(phdcmi, DCMI_MODE_CONTINUOUS, (uint32_t)camera_buff, (WIDTH * HEIGHT) / 2);
    643. /* OnError_Handler(hal_status != HAL_OK); */
    644. }
    645. }
    646. void GC0329_CAMERA_FrameEventCallback(void)
    647. {
    648. if (pCapFunc)
    649. {
    650. pCapFunc();
    651. return;
    652. }
    653. if (camera_dis_on)
    654. {
    655. HAL_DCMI_Suspend(phdcmi);
    656. camera_dispaly(camera_buff, (WIDTH * HEIGHT));
    657. HAL_DCMI_Start_DMA(phdcmi, DCMI_MODE_CONTINUOUS, (uint32_t)camera_buff, (WIDTH * HEIGHT) / 2);
    658. HAL_DCMI_Resume(phdcmi);
    659. }
    660. }
    661. /**
    662. * @brief Frame event callback
    663. * @param hdcmi: pointer to the DCMI handle
    664. * @retval None
    665. */
    666. void HAL_DCMI_FrameEventCallback(DCMI_HandleTypeDef *hdcmi)
    667. {
    668. GC0329_CAMERA_FrameEventCallback();
    669. }
    670. int CameraHAL_Capture_Config(uint16_t w, uint16_t h)
    671. {
    672. HAL_StatusTypeDef hal_status = HAL_OK;
    673. if (w > 640 || h > 480) return 0;
    674. camera_drv = &gc0329_drv;
    675. phdcmi = &hdcmi;
    676. gc0329_power_onoff(1);
    677. camera_drv->Init(GC0329_I2CADDR, CAMERA_R640x480);
    678. HAL_DCMI_ConfigCROP(phdcmi,
    679. (640 - w) >> 1, /* Crop in the middle of the VGA picture */
    680. (480 - h) >> 1, /* Same height (same number of lines: no need to crop vertically) */
    681. (w * 1) - 1, /* 2 pixels clock needed to capture one pixel */
    682. (w * 1) - 1); /* All 240 lines are captured */
    683. HAL_DCMI_EnableCROP(phdcmi);
    684. HAL_Delay(1000);
    685. __HAL_DCMI_DISABLE_IT(phdcmi, DCMI_IT_LINE | DCMI_IT_VSYNC);
    686. return hal_status == HAL_OK;
    687. }
    688. int CameraHAL_Capture_Start(uint8_t * buf, uint32_t len, void(*notify)())
    689. {
    690. HAL_StatusTypeDef hal_status = HAL_OK;
    691. pCapFunc = notify;
    692. if (pCapFunc)
    693. {
    694. hal_status = HAL_DCMI_Start_DMA(phdcmi, DCMI_MODE_SNAPSHOT, (uint32_t)buf, len);
    695. }
    696. return hal_status == HAL_OK;
    697. }

    五、编辑及测试

            【1】在main.c转函数文件中,加入camera.h的引用

    1. /* USER CODE BEGIN Includes */
    2. #include "../../ICore/key/key.h"
    3. #include "../../ICore/led/led.h"
    4. #include "../../ICore/print/print.h"
    5. #include "../../ICore/usart/usart.h"
    6. #include "../../ICore/oled/oled.h"
    7. #include "../../ICore/cam/camera.h"
    8. /* USER CODE END Includes */

            在主函数内调用camera的初始函数

    1. /* USER CODE BEGIN 2 */
    2. ResetPrintInit(&hlpuart1);
    3. HAL_UART_Receive_IT(&hlpuart1,(uint8_t *)&HLPUSART_NewData, 1); //再开启接收中断
    4. HLPUSART_RX_STA = 0;
    5. //
    6. OLED_init();
    7. //
    8. CameraDEMO_Init();
    9. uint8_t flag = 0x00;
    10. uint8_t bkflag = 0X00;
    11. /* USER CODE END 2 */

            【2】在主函数循环体内,设置通过按键2开启或关闭摄像头抓取数据推送LCD屏幕显示的功能

    1. /* USER CODE BEGIN WHILE */
    2. while (1)
    3. {
    4. if(HLPUSART_RX_STA&0xC000){//溢出或换行,重新开始
    5. //设置OLED蓝色背景显示
    6. if(!bkflag){
    7. BSP_LCD_Clear_DMA(LCD_DISP_BLUE);
    8. bkflag = 0x01;
    9. }
    10. // printf("OLED_Clear_DMA\r\n");
    11. //printf("%.*s\r\n",HLPUSART_RX_STA&0X0FFF, HLPUSART_RX_BUF);
    12. OLED_printf(10,10,"%.*s",HLPUSART_RX_STA&0X0FFF, HLPUSART_RX_BUF);
    13. HLPUSART_RX_STA=0;//接收错误,重新开始
    14. HAL_Delay(100);//等待
    15. }
    16. if(KEY_0())
    17. {
    18. BSP_LCD_login(24,108);
    19. bkflag = 0x00;
    20. }
    21. if(KEY_1())
    22. {
    23. BSP_LCD_img_DMA();
    24. bkflag = 0x00;
    25. }
    26. if(KEY_2())
    27. {
    28. flag = !flag;
    29. enable_camera_display(flag);
    30. bkflag = 0x00;
    31. }
    32. /* USER CODE END WHILE */

            【3】在运行按钮下拉选择,进入运行配置界面,新建运行配置,默认配置。

             【4】编译及下载

           【5】 按键2,测试视频显示输出

  • 相关阅读:
    java-net-php-python-jsp学生创新项目系统计算机毕业设计程序
    【Linux学习】Linux编辑器-vim使用
    CMake使用基础汇总
    汇编 -- arm架构的ldmia与stmia指令
    【校招VIP】前端JS语言考点之选择器和优先级
    HarmonyOS Codelab 优秀样例——溪村小镇(ArkTS)
    Delphi使用JSON
    聊聊电商系统架构演进
    uniapp之路由中携带参数跳转
    小程序开发音视频问题汇总及解决方案
  • 原文地址:https://blog.csdn.net/py8105/article/details/128187886