You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Fix camera again...
This commit is contained in:
@@ -616,16 +616,20 @@ def log_callback(level, log_str):
|
||||
# Register log callback
|
||||
lv.log_register_print_cb(log_callback)
|
||||
|
||||
|
||||
# Function to get FPS
|
||||
def get_fps():
|
||||
return fps_buffer[0]
|
||||
|
||||
fps = get_fps()
|
||||
if fps > 0: # Only print when FPS is updated
|
||||
print("Current FPS:", fps)
|
||||
|
||||
#fps = get_fps()
|
||||
#if fps > 0: # Only print when FPS is updated
|
||||
# print("Current FPS:", fps)
|
||||
|
||||
|
||||
# Main loop
|
||||
for _ in range(10):
|
||||
import time
|
||||
fps = get_fps()
|
||||
if fps > 0: # Only print when FPS is updated
|
||||
print("Current FPS:", fps)
|
||||
|
||||
Reference in New Issue
Block a user