From a9ac447597f6e1c6ca288e6487090c7914d6851d Mon Sep 17 00:00:00 2001 From: yjdwbj Date: Sat, 13 Apr 2024 09:20:34 +0800 Subject: [PATCH] fixed bugs --- README.md | 3 +-- main.c | 1 - ov2640.c | 13 ------------- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/README.md b/README.md index a7c363b..4fa440e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Capture video on your [Raspberry Pi Pico](https://www.raspberrypi.com/products/r * RP2040 board * [Raspberry Pi Pico](https://www.raspberrypi.org/products/raspberry-pi-pico/) * ov2640 camera module within 24Mhz osc -* ILI9341 2.8 TFT SPI 240x420 V1.2 LCD module +* ILI9341 2.8 TFT SPI 240x320 V1.2 LCD module ![ov2640 front](images/cam_front.jpg) ![ov2640 back](images/cam_back.jpg) @@ -50,7 +50,6 @@ Capture video on your [Raspberry Pi Pico](https://www.raspberrypi.com/products/r | 11 | D5 | | | 12 | D6 | | | 13 | D7 | | -| 14 | PCLK | | | 15 | HSYNC | | | 18 | | RESET | | 19 | | RS/DC | diff --git a/main.c b/main.c index 96695f5..fe6dc91 100644 --- a/main.c +++ b/main.c @@ -62,7 +62,6 @@ static uint32_t blink_interval_ms = BLINK_NOT_MOUNTED; const int PIN_LED = 25; const int PIN_CAM_RESETB = 2; -// const int PIN_CAM_XCLK = 3; const int PIN_CAM_VSYNC = 3; const int PIN_CAM_Y2_PIO_BASE = 6; diff --git a/ov2640.c b/ov2640.c index c8de35a..ef71b9e 100644 --- a/ov2640.c +++ b/ov2640.c @@ -12,19 +12,6 @@ struct ov2640_config *vconfig = NULL; // #define PIN_PWND -1 // Also called PWDN, or set to -1 and tie to GND -// struct ov2640_config config = { -// .sccb = i2c_default, -// .pin_sioc = PICO_DEFAULT_I2C_SCL_PIN, -// .pin_siod = PICO_DEFAULT_I2C_SDA_PIN, -// .pin_vsync = PIN_CAM_VSYNC, -// .pin_y2_pio_base = PIN_CAM_Y2_PIO_BASE, - -// .pio = pio0, -// .pio_sm = 0, -// .dma_channel = 0, -// .image_buf = image_buf, -// .image_buf_size = sizeof(image_buf), -// }; static void ov2640_reg_write(uint8_t reg, uint8_t value) { // printf("write reg: 0x%02x, value: 0x%02x\n", reg, value);