mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
Update deepsleep example.
This commit is contained in:
parent
11792fb763
commit
91dac4c7d5
@ -14,15 +14,16 @@ rtc.datetime((2014, 5, 1, 4, 13, 0, 0, 0))
|
||||
print(rtc.datetime())
|
||||
|
||||
sensor.reset()
|
||||
|
||||
# Enable sensor softsleep
|
||||
sensor.sleep(True)
|
||||
|
||||
# Optionally bypass the regulator on OV7725
|
||||
# for the lowest possible power consumption.
|
||||
if (sensor.get_id() == sensor.OV7725):
|
||||
# Bypass internal regulator
|
||||
sensor.__write_reg(0x4F, 0x18)
|
||||
|
||||
# Enable sensor softsleep
|
||||
sensor.sleep(True)
|
||||
|
||||
# Shutdown the sensor (pulls PWDN high).
|
||||
sensor.shutdown(True)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user