You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
camtest: fix internal camera
This commit is contained in:
@@ -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,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user