Skip to content

Commit a9f3ba2

Browse files
authored
esp32_camera: Remove remaining references to i2c_pins-option from examples (#5131)
1 parent 762874e commit a9f3ba2

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

components/esp32_camera.rst

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -486,23 +486,20 @@ Configuration examples
486486
.. code-block:: yaml
487487
488488
# Example configuration entry
489-
external_components:
490-
- source:
491-
type: git
492-
url: https://github.com/MichaKersloot/esphome_custom_components
493-
components: [ esp32_camera ]
494-
489+
i2c:
490+
- id: camera_i2c
491+
sda: GPIO4
492+
scl: GPIO5
495493
esp32_camera:
496494
external_clock:
497495
pin: GPIO15
498496
frequency: 20MHz
499-
i2c_pins:
500-
sda: GPIO4
501-
scl: GPIO5
497+
i2c_id: camera_i2c
502498
data_pins: [GPIO11, GPIO9, GPIO8, GPIO10, GPIO12, GPIO18, GPIO17, GPIO16]
503499
vsync_pin: GPIO6
504500
href_pin: GPIO7
505501
pixel_clock_pin: GPIO13
502+
frame_buffer_location: DRAM
506503
507504
# Image settings
508505
name: My Camera
@@ -535,13 +532,15 @@ Configuration examples
535532

536533
.. code-block:: yaml
537534
535+
i2c:
536+
- id: camera_i2c
537+
sda: GPIO48
538+
scl: GPIO47
538539
esp32_camera:
539540
external_clock:
540541
pin: GPIO3
541542
frequency: 20MHz
542-
i2c_pins:
543-
sda: GPIO48
544-
scl: GPIO47
543+
i2c_id: camera_i2c
545544
data_pins: [GPIO41, GPIO45, GPIO46, GPIO42, GPIO40, GPIO38, GPIO15, GPIO18]
546545
vsync_pin: GPIO1
547546
href_pin: GPIO2

0 commit comments

Comments
 (0)