From eb09a6035bf77dfa3da33932376a5364c019f313 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Tue, 24 Jun 2025 14:45:13 +0200 Subject: [PATCH] Prepare 0.0.8 --- internal_filesystem/boot_unix.py | 7 ++++--- internal_filesystem/lib/mpos/info.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/internal_filesystem/boot_unix.py b/internal_filesystem/boot_unix.py index 9a9b123e..3d7cfb6c 100644 --- a/internal_filesystem/boot_unix.py +++ b/internal_filesystem/boot_unix.py @@ -75,7 +75,7 @@ sdlkeyboard.set_paste_text_callback(mpos.clipboard.paste_text) # so it needs a software power off to prevent it from staying hot all the time and quickly draining the battery. # 1) Initialize camera, otherwise it doesn't reply to I2C commands: try: - from camera import Camera, GrabMode, PixelFormat, FrameSize, GainCeiling + from camera import Camera cam = Camera(data_pins=[12,13,15,11,14,10,7,2],vsync_pin=6,href_pin=4,sda_pin=21,scl_pin=16,pclk_pin=9,xclk_pin=8,xclk_freq=20000000,powerdown_pin=-1,reset_pin=-1,pixel_format=PixelFormat.RGB565,frame_size=FrameSize.R240X240,grab_mode=GrabMode.LATEST) cam.deinit() except Exception as e: @@ -84,8 +84,9 @@ except Exception as e: try: from machine import Pin, I2C i2c = I2C(1, scl=Pin(16), sda=Pin(21)) # Adjust pins and frequency - #devices = i2c.scan() - #print([hex(addr) for addr in devices]) # finds it on 60 = 0x3C after init + devices = i2c.scan() + print("Scan of I2C bus on scl=16, sda=21:") + print([hex(addr) for addr in devices]) # finds it on 60 = 0x3C after init camera_addr = 0x3C # for OV5640 reg_addr = 0x3008 reg_high = (reg_addr >> 8) & 0xFF # 0x30 diff --git a/internal_filesystem/lib/mpos/info.py b/internal_filesystem/lib/mpos/info.py index 939f605f..1a18bce9 100644 --- a/internal_filesystem/lib/mpos/info.py +++ b/internal_filesystem/lib/mpos/info.py @@ -1 +1 @@ -CURRENT_OS_VERSION = "0.0.7" +CURRENT_OS_VERSION = "0.0.8"