camtest: fix internal camera

This commit is contained in:
Thomas Farstrike
2025-05-14 15:09:39 +02:00
parent 6fa0530957
commit cf5291329a
2 changed files with 2 additions and 2 deletions
@@ -1,5 +1,4 @@
import time
import webcam
appscreen = lv.screen_active()
th.disable()
@@ -202,6 +201,7 @@ cam = init_cam()
if not cam:
print("camtest.py: no internal camera found, trying webcam on /dev/video0")
try:
import webcam
cam = webcam.init("/dev/video0") # Initialize webcam with device path
use_webcam = True
except Exception as e:
+1 -1
View File
@@ -1,5 +1,5 @@
fwfile="/home/user/sources/lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin"
ls -al $fwfile
echo "Add --erase-all if needed"
~/.espressif/python_env/idf5.2_py3.9_env/bin/python -m esptool --chip esp32s3 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 16MB --flash_freq 80m "$1" 0x0 $fwfile
~/.espressif/python_env/idf5.2_py3.9_env/bin/python -m esptool --chip esp32s3 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 16MB --flash_freq 80m $1 0x0 $fwfile