We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbb5d2f commit 4a8e2b6Copy full SHA for 4a8e2b6
adafruit_ov5640.py
@@ -1165,14 +1165,14 @@ def effect(self, value):
1165
1166
@property
1167
def quality(self):
1168
- """Controls the JPEG quality. Valid range is from 5..55 inclusive"""
+ """Controls the JPEG quality. Valid range is from 2..55 inclusive"""
1169
return self._read_register(_COMPRESSION_CTRL07) & 0x3F
1170
1171
@quality.setter
1172
def quality(self, value: int):
1173
- if not 5 <= value < 55:
+ if not 2 <= value < 55:
1174
raise ValueError(
1175
- f"Invalid quality value {value}, use a value from 5..55 inclusive"
+ f"Invalid quality value {value}, use a value from 2..55 inclusive"
1176
)
1177
self._write_register(_COMPRESSION_CTRL07, value & 0x3F)
1178
0 commit comments