Skip to content

Commit cf52913

Browse files
camtest: fix internal camera
1 parent 6fa0530 commit cf52913

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal_filesystem/apps/com.example.camtest/assets/camtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import time
2-
import webcam
32

43
appscreen = lv.screen_active()
54
th.disable()
@@ -202,6 +201,7 @@ def init_cam():
202201
if not cam:
203202
print("camtest.py: no internal camera found, trying webcam on /dev/video0")
204203
try:
204+
import webcam
205205
cam = webcam.init("/dev/video0") # Initialize webcam with device path
206206
use_webcam = True
207207
except Exception as e:

scripts/flash_over_usb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
fwfile="/home/user/sources/lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin"
22
ls -al $fwfile
33
echo "Add --erase-all if needed"
4-
~/.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
4+
~/.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
55

0 commit comments

Comments
 (0)