Skip to content

Commit 171db33

Browse files
committed
code format + pylint
1 parent c46f5cd commit 171db33

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

adafruit_ov5640.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import time
3131
import imagecapture
3232
import pwmio
33-
import digitalio
3433
from adafruit_bus_device.i2c_device import I2CDevice
3534

3635
try:
@@ -742,7 +741,7 @@
742741
_FORMAT_CTRL00, 0x61, # RGB565 (BGR)
743742
_SYSTEM_RESET02, 0x1C, # reset jfifo, sfifo, jpg, fmux, avg
744743
_CLOCK_ENABLE02, 0xC3, # reset to how it was before (no jpg clock)
745-
744+
746745
]
747746

748747
_ov5640_color_settings = {
@@ -1047,17 +1046,16 @@ def __init__(
10471046
if shutdown:
10481047
self._shutdown = shutdown
10491048
self._shutdown.switch_to_output(True)
1050-
time.sleep(0.005) # t2, 5ms stability
1049+
time.sleep(0.005) # t2, 5ms stability
10511050
self._shutdown.switch_to_output(False)
10521051
else:
10531052
self._shutdown = None
10541053

10551054
if self._reset:
1056-
time.sleep(0.001) # t3, 1ms delay from pwdn
1055+
time.sleep(0.001) # t3, 1ms delay from pwdn
10571056
self._reset.switch_to_output(True)
10581057
time.sleep(0.02)
10591058

1060-
10611059
# Now that the master clock is running, we can initialize i2c comms
10621060
super().__init__(i2c_bus, i2c_address)
10631061

0 commit comments

Comments
 (0)