Commit graph

266 commits

Author SHA1 Message Date
Scott Shawcroft
d529ebdffb
Merge pull request #8 from tannewt/update_esp_camera_bae46be
Update esp camera bae46be
2024-03-25 13:47:47 -07:00
Scott Shawcroft
9abb23ed43
Merge remote-tracking branch 'espressif/master' into HEAD 2024-03-22 16:19:14 -07:00
Me No Dev
bae46be5eb
Update example to place frame buffer in PSRAM (#648)
ESP32 failed to start the example
2024-03-21 14:06:18 +02:00
Me No Dev
f0bb42917c
Implement proper GDMA allocator and ISR from IRAM option (#629)
* Implement proper GDMA allocator

* Add Kconfig option to execute ISR from IRAM on S2 and S3

Up until now, default was to execute from IRAM. This changes that for S2 and S3. ESP32 is left unchanged, because of the work that is required on it.
2024-01-29 13:21:30 +02:00
Me No Dev
984999f26b
Create workaround for DMA failing on ESP32-S3 when WiFi is started (#625)
* Create workaround for DMA failing on ESP32-S3 when WiFi is started

Relates to https://github.com/espressif/esp32-camera/issues/620

* Add comment explaining the workaround
2024-01-23 12:16:48 +02:00
Me No Dev
8ee9c75dff
Update build config to include IDFv5.2 and remove IDFv4.3 (EOL) (#624)
* Update build config to include IDFv5.2 and remove IDFv4.3 (EOL)

* Update build.yml
2024-01-22 11:31:09 +02:00
Me No Dev
8df17f7286
Align the frame buffers to the structure alignment (#623)
* Align the frame buffers to the structure alignment 

cc: https://github.com/esp-rs/esp-idf-sys/issues/278
cc: https://github.com/esp-rs/rust/pull/195

* Include stdalign.h
2024-01-22 11:27:48 +02:00
Larry Li
dba8da9898
Fix right column & row of the measure window (#588)
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2023-11-10 12:35:17 +02:00
Ivan Grokhotkov
8e1a00391a
Maintenance changes in the component, examples and readme (#597)
* maint(build): remove legacy GNU Make build system support

* maint(example): move the example so that component manager finds it

* maint(example): specify component dependency

* maint(build): clean up legacy 'register_component' usage

* maint(build): specify more fields in component manifest

* doc(readme): simplify installation instructions

See https://github.com/espressif/esp32-camera/issues/596

* maint(ci): remove tests for EOL versions (v4.1, v4.2)

* fix(build): add missing transitive dependency on driver component
2023-11-09 18:23:30 +02:00
yuxinwww
81cd88c6a0
fix: add gc0308 output only Y format support (#589) 2023-11-08 15:44:40 +02:00
yuxinwww
efe711df9a
fix: add SC031GS VGA framesize support (#581) 2023-10-11 18:55:58 +03:00
Vikram Dattu
772aefdb67
Fix cam_take going into infinite loop (#578)
- Check if we have remaining ticks before going for math and calling cam_take recursively
2023-10-11 18:55:12 +03:00
Scott Shawcroft
8f3f2cc8cf
Merge pull request #7 from tannewt/merge_esp_camera
Merge esp camera upstream
2023-09-21 10:01:35 -07:00
Scott Shawcroft
e8d500e948
Merge remote-tracking branch 'origin/master' into circuitpython 2023-09-20 14:34:14 -07:00
yuxinwww
d1c9c2cdb3
feat: add bf20a6 output Only Y format support (#557) 2023-08-08 12:01:58 +03:00
75035312ed
Merge pull request #6 from adafruit/solarize
Add solarize effect
2023-08-02 10:19:24 -05:00
2758089a06
Add solarize effect
register 0x5003 bit 0 is solarize. needs a change in the pycamera app too.
2023-08-02 08:00:30 -05:00
Scott Shawcroft
68432607d5
Merge pull request #5 from adafruit/faster-probe
Faster probe
2023-08-01 13:14:03 -07:00
2cd2a6d69f
sccb: lower timeout when probing for camera
1000ms is too long. let's try 50ms.
2023-07-26 12:51:06 -05:00
2710e44802
sccb: don't perform an i2c bus scan 2023-07-26 12:50:38 -05:00
Juan Schiavoni
c0c17bd3de
Fails with ESP32 (Standard) and not run with ESP-IDF v5.2 (#542)
* Fails with ESP32 (standard) and ESP-IDF v5.2

With IDF 5.2 master it works with esp32-s3 but fails with esp32 standard, and has two problems:

First is that when compiling it does not find the function: ets_delay_us'.
implicit declaration of function 'ets_delay_us';

Second that it fails to initialize xlock.
camera_xclk: ledc_timer_config failed, rc=103

The solution is to add #define ets_delay_us esp_rom_delay_us when the idf version is greater than 5 and initialize the variable timer_conf.deconfigure = false;

* Build fails with ESP32 (Standard) and does not run with ESP-IDF v5.2

With IDF 5.2 master it works with esp32-s3 but fails with esp32 standard, and has two problems:

First is that when compiling it does not find the function: ets_delay_us'.
implicit declaration of function 'ets_delay_us';

Second that it fails to initialize xlock.
camera_xclk: ledc_timer_config failed, rc=103

The solution is to add #define ets_delay_us esp_rom_delay_us when the idf version is greater than 5 and initialize the variable timer_conf.deconfigure = false;

* Fails with ESP32 (Standard) and not run with ESP-IDF v5.2

With IDF 5.2 master it works with esp32-s3 but fails with esp32 standard, and has two problems:

First is that when compiling it does not find the function: ets_delay_us'. implicit declaration of function 'ets_delay_us';

Second that it fails to initialize xlock.
camera_xclk: ledc_timer_config failed, rc=103

The solution is to add #define ets_delay_us esp_rom_delay_us when the idf version is greater than 5 and initialize the variable timer_conf.deconfigure = false;

---------

Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2023-07-18 12:49:07 +03:00
Me No Dev
f595abfa0f
Fix SOC_GDMA_PAIRS_PER_GROUP undefined in newer ESP-IDF 2023-07-18 12:31:51 +03:00
Vikram Dattu
e689c3b082
Support: jpeg decoder on esp32c2 (#525)
* Extend s/w jpeg decoder functions for chips missing rom tjpgd

Also, disabled camera_init and capture from example for chips not
supporting camera

Signed-off-by: Vikram <vikram.dattu@espressif.com>

* Extend CI build support for C3 and C2

Signed-off-by: Vikram <vikram.dattu@espressif.com>

---------

Signed-off-by: Vikram <vikram.dattu@espressif.com>
2023-04-25 14:40:46 +03:00
Wouter de Bie
36b8b4e096
Uninstalls ISR service on cam deinit (#516)
Since `gpio_install_isr_service()` is called when initializing the
camera, but on de-initiazlization the ISR service is not uninstalled.
This causes an error `gpio_install_isr_service(410): GPIO isr service
already installed` when the camera is re-initialized.

Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2023-04-20 16:39:09 +03:00
Wouter de Bie
1cb6af89d1
Adds esp_camera_return_all() (#519) 2023-04-20 16:38:40 +03:00
Tomas Rezucha
fac950973b
Fix/pedantic build (#529)
* Fix: Make esp32-camera function prototypes strict

This is required for pedantic builds with
-Wstrict-prototypes flag

* ci: Enable pedantic example build
2023-04-19 21:06:33 +03:00
Sam Washburn
2e6a36d57d
Fix: Make sure there is a queue size of at least 1. (#527)
Co-authored-by: Sam Washburn <samw@kinoo.family>
2023-04-11 10:52:11 +03:00
Patryk Ludwikowski
6edafc7501
fix: remove unnecessary new line in logs of driver initialization (#500)
yes - because it hurt my eyes to see logs with this one, weird empty line...
2023-03-30 11:42:17 +03:00
Me No Dev
2478a5fc7a
Fix LoadStoreAlignment panic (#491) 2023-01-12 12:54:22 +02:00
Dan Halbert
4ff7f348d0
Merge pull request #4 from deshipu/circuitpython
Make xclk pin optional
2022-12-16 13:43:13 -05:00
Radomir Dopieralski
d117548c22 Make xclk pin optional
Some camera modules come with a crystal oscillator that already provides
the main clock, and they don't have the xclk/mclk pin. We don't need to
initialize the PWM pin then.

(cherry picked from commit 896cb707dd)
2022-12-16 17:13:45 +01:00
XDanielPaul
402b811b83
Added badge with version to README (#487)
Co-authored-by: Daniel Paul <daniel.paul@espressif.com>
2022-12-12 19:53:42 +02:00
Bruno Randolf
8bcc835cf7
OV7670 fixes (#484)
* ov7670: fix ov7670_frame_control()

Last value of array (VREF) was overwritten by end marker

* OV7670: Adapt QQVGA VSTART value to remove bar on top

Remove empty bar at the top of the frame. This is more visible on
OV7675, but also present on OV7670
2022-12-08 15:18:34 +02:00
Me No Dev
9e8d7cd471
Merge pull request #480 from WangYuxin-esp/fix/fix_wrong_cam_task_stack_size_define
fix: fix bad macro definition on cam stack size
2022-11-16 11:36:17 +02:00
Wang Yu Xin
ae117e9d85 fix: fix bad macro definition on cam stack size 2022-11-15 10:56:03 +08:00
Me No Dev
c3eacc813f
Merge pull request #474 from WangYuxin-esp/feature/support_sccb_handle_16bit_val
Feature/support sccb handle 16bit val
2022-11-10 20:57:31 +02:00
Wang Yu Xin
f3d04ea2c5 fix: change sccb_write return int value 2022-11-09 19:19:20 +08:00
yuxinwww
02e629a96a
Merge branch 'espressif:master' into feature/support_sccb_handle_16bit_val 2022-11-08 16:58:04 +08:00
Me No Dev
5c8349f4cf
Merge pull request #470 from WangYuxin-esp/fix/fix_dma_buffer_heap_corruption_after_cam_deinit
fix: heap corruption caused by dma_buffer in cam_deinit()
2022-10-27 12:43:46 +03:00
Wang Yu Xin
e8727c2747 fix: heap corruption caused by dma_buffer in cam_deinit() 2022-10-27 17:07:55 +08:00
Wang Yu Xin
ae60e38d57 feat: add sccb handle addr16_val16 reg type 2022-10-14 20:27:56 +08:00
Me No Dev
1c3ec575c9
Merge pull request #462 from WangYuxin-esp/fix/fix_resolution_description_for_esp32s_series
fix: fix description of resolution in docs and examples
2022-10-11 13:09:53 +03:00
Wang Yu Xin
2182f88230 fix: fix description of resolution in docs and examples 2022-10-11 14:53:28 +08:00
Me No Dev
108a330149
Merge pull request #452 from WangYuxin-esp/feature/add_sc031gs_camera_sensor_driver
feat: add SC031GS camera sensor support
2022-09-26 12:00:15 +03:00
Wang Yu Xin
9d9e7d62a3 feat: add SC031GS camera sensor support 2022-09-26 16:33:43 +08:00
Me No Dev
de025b8f40
Merge pull request #451 from adafruit/deinit-check
don't reset LEDC channel if it wasn't used by camera
2022-09-23 11:04:39 +03:00
Dan Halbert
7e51ff74b9
Merge pull request #2 from MicroDev1/master
Merge upstream updates
2022-09-20 12:15:45 -04:00
Dan Halbert
846554ecb4 don't reset LEDC channel if it wasn't used by camera 2022-09-20 11:14:50 -04:00
microDev
80b5754456
merge upstream updates 2022-09-17 16:10:32 +05:30
Dan Halbert
54c3f61c86
Merge pull request #1 from adafruit/safe-disable_out_clock
don't reset LEDC channel if it wasn't used by camera
2022-09-13 12:49:34 -04:00