Skip to content

Use 20MHz, not 24MHz, master clock #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ Usage Example
vsync=board.CAMERA_VSYNC,
href=board.CAMERA_HREF,
mclk=board.CAMERA_XCLK,
mclk_frequency=24_000_000,
size=adafruit_ov5640.OV5640_SIZE_QQVGA,
)
print("print chip id")
Expand Down
8 changes: 6 additions & 2 deletions adafruit_ov5640.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ def __init__(
shutdown=None,
reset=None,
mclk=None,
mclk_frequency=24_000_000,
mclk_frequency=20_000_000,
i2c_address=0x3C,
size=OV5640_SIZE_QQVGA,
): # pylint: disable=too-many-arguments
Expand All @@ -838,7 +838,11 @@ def __init__(
master clock signal, or None if the master clock signal is
already being generated.
mclk_frequency (int): The frequency of the master clock to generate, \
ignored if mclk is None, requred if it is specified
ignored if mclk is None, requred if it is specified.
Note that the OV5640 requires a very low jitter clock,
so only specific (microcontroller-dependent) values may
work reliably. On the ESP32-S2, a 20MHz clock can be generated
with sufficiently low jitter.
i2c_address (int): The I2C address of the camera.
"""

Expand Down
1 change: 0 additions & 1 deletion examples/ov5640_directio_kaluga1_3_ili9341.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
vsync=board.CAMERA_VSYNC,
href=board.CAMERA_HREF,
mclk=board.CAMERA_XCLK,
mclk_frequency=24_000_000,
size=adafruit_ov5640.OV5640_SIZE_QVGA,
)

Expand Down
1 change: 0 additions & 1 deletion examples/ov5640_sdcard_kaluga_1_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
vsync=board.CAMERA_VSYNC,
href=board.CAMERA_HREF,
mclk=board.CAMERA_XCLK,
mclk_frequency=24_000_000,
size=adafruit_ov5640.OV5640_SIZE_QSXGA,
)

Expand Down
1 change: 0 additions & 1 deletion examples/ov5640_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
vsync=board.CAMERA_VSYNC,
href=board.CAMERA_HREF,
mclk=board.CAMERA_XCLK,
mclk_frequency=24_000_000,
size=adafruit_ov5640.OV5640_SIZE_QQVGA,
)
print("print chip id")
Expand Down