Skip to content

Commit c74746f

Browse files
committed
Cross references in documentation always help
1 parent 5a85b8a commit c74746f

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

ports/espressif/bindings/esp32_camera/Camera.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@
6666
//| This driver requires that the ``CIRCUITPY_RESERVED_PSRAM`` in ``/.env`` be large enough to hold the camera frambuffer(s). Generally, boards with built-in cameras will have a default setting that is large enough. If the constructor raises a MemoryError, this probably indicates the setting is too small and should be increased.
6767
//|
6868
//|
69-
//| .. IMPORTANT:
69+
//| .. important::
70+
//|
7071
//| Not all supported sensors have all
7172
//| of the properties listed below. For instance, the
7273
//| OV5640 supports `denoise`, but the
@@ -558,7 +559,7 @@ MP_PROPERTY_GETSET(esp32_camera_camera_exposure_ctrl_obj,
558559
(mp_obj_t)&esp32_camera_camera_set_exposure_ctrl_obj);
559560

560561
//| hmirror: bool
561-
//| """When `true` the camera image is mirrored left-to-right"""
562+
//| """When `True` the camera image is mirrored left-to-right"""
562563
//|
563564

564565
STATIC mp_obj_t esp32_camera_camera_get_hmirror(const mp_obj_t self_in) {

ports/espressif/bindings/esp32_camera/__init__.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
//|
4040
//| This library enables access to any camera sensor supported by the library,
4141
//| including OV5640 and OV2640.
42+
//|
43+
//| .. seealso::
44+
//|
45+
//| Non-Espressif microcontrollers use the `imagecapture` module together with wrapper libraries such as `adafruit_ov5640 <https://circuitpython.readthedocs.io/projects/ov5640/en/latest/>`_.
46+
//|
4247
//| """
4348

4449
//| class GrabMode:

shared-bindings/imagecapture/ParallelImageCapture.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
//| ) -> None:
4848
//| """Create a parallel image capture object
4949
//|
50+
//| This object is usually used with a camera-specific wrapper library such as `adafruit_ov5640 <https://circuitpython.readthedocs.io/projects/ov5640/en/latest/>`_.
51+
//|
5052
//| :param List[microcontroller.Pin] data_pins: The data pins.
5153
//| :param microcontroller.Pin clock: The pixel clock input.
5254
//| :param microcontroller.Pin vsync: The vertical sync input, which has a negative-going pulse at the beginning of each frame.

shared-bindings/imagecapture/__init__.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@
3131

3232
#include "shared-bindings/imagecapture/ParallelImageCapture.h"
3333

34-
//| """Support for "Parallel capture" interfaces"""
34+
//| """Support for "Parallel capture" interfaces
3535
//|
36-
36+
//| .. seealso::
37+
//|
38+
//| Espressif microcontrollers use the `esp32_camera` module together.
39+
//|
40+
//| """
3741
STATIC const mp_rom_map_elem_t imagecapture_module_globals_table[] = {
3842
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_imagecapture) },
3943
{ MP_ROM_QSTR(MP_QSTR_ParallelImageCapture), MP_ROM_PTR(&imagecapture_parallelimagecapture_type) },

0 commit comments

Comments
 (0)