You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Still hangs
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@
|
||||
|
||||
#define WIDTH 640
|
||||
#define HEIGHT 480
|
||||
#define NUM_BUFFERS 4
|
||||
#define NUM_BUFFERS 1
|
||||
#define OUTPUT_WIDTH 240
|
||||
#define OUTPUT_HEIGHT 240
|
||||
|
||||
|
||||
@@ -236,12 +236,12 @@ if cam or use_webcam:
|
||||
#webcam.recapture_frame(cam)
|
||||
bytes_obj = bytes(memview)
|
||||
print(f"got bytes: {len(bytes_obj)}")
|
||||
image_dsc.data = bytes_obj
|
||||
#image_dsc.data = static_bytes_obj
|
||||
#image_dsc.data = bytes_obj
|
||||
image_dsc.data = static_bytes_obj
|
||||
time.sleep_ms(200) # Allow for the MicroPython REPL to still work. Reducing it doesn't seem to affect the on-display FPS.
|
||||
# somehow, everything's fine until I tell LVGL to redraw the image:
|
||||
image.invalidate()
|
||||
#image.set_src(image_dsc)
|
||||
#image.invalidate()
|
||||
image.set_src(image_dsc)
|
||||
print("App backgrounded, deinitializing camera...")
|
||||
if use_webcam:
|
||||
webcam.deinit(cam) # Deinitializes webcam
|
||||
|
||||
Reference in New Issue
Block a user