You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Show count
This commit is contained in:
@@ -209,7 +209,10 @@ if not cam:
|
||||
|
||||
if cam or use_webcam:
|
||||
build_ui()
|
||||
count=0
|
||||
while appscreen == lv.screen_active() and keepgoing is True:
|
||||
print(f"capture nr {count}")
|
||||
count += 1
|
||||
try_capture()
|
||||
time.sleep_ms(100) # Allow for the MicroPython REPL to still work. Reducing it doesn't seem to affect the on-display FPS.
|
||||
print("App backgrounded, deinitializing camera...")
|
||||
|
||||
@@ -185,7 +185,7 @@ int main() {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (capture_frames(100) < 0) {
|
||||
if (capture_frames(1000) < 0) {
|
||||
printf("Frame capture failed\n");
|
||||
deinit_webcam();
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user