Skip to content

Commit

Permalink
fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
yjdwbj committed Apr 13, 2024
1 parent e9407ce commit a9ac447
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 |
Expand Down
1 change: 0 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
13 changes: 0 additions & 13 deletions ov2640.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a9ac447

Please sign in to comment.