Skip to content

Commit 51e8de4

Browse files
committed
initialize saturation and effect to default values. Fix ruff badge in readme
1 parent 36e1684 commit 51e8de4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ Introduction
1717
:alt: Build Status
1818

1919

20-
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
21-
:target: https://github.com/psf/black
22-
:alt: Code Style: Black
20+
.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
21+
:target: https://github.com/astral-sh/ruff
22+
:alt: Code Style: Ruff
2323

2424
CircuitPython driver for OV5640 Camera
2525

adafruit_ov5640/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,8 @@ def __init__(
11181118
self._ev = 0
11191119
self._white_balance = 0
11201120
self.size = size
1121+
self._saturation = 0
1122+
self._effect = OV5640_SPECIAL_EFFECT_NONE
11211123

11221124
if init_autofocus:
11231125
self.autofocus_init()

0 commit comments

Comments
 (0)