You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Fix camera blank issue
This commit is contained in:
@@ -104,6 +104,9 @@ class CameraApp(Activity):
|
||||
|
||||
def onResume(self, screen):
|
||||
self.cam = init_internal_cam()
|
||||
if not self.cam:
|
||||
# try again because the manual i2c poweroff leaves it in a bad state
|
||||
self.cam = init_internal_cam()
|
||||
if self.cam:
|
||||
self.image.set_rotation(900) # internal camera is rotated 90 degrees
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user