Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteb09a60

Browse files
Prepare 0.0.8
1 parent34a5968 commiteb09a60

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

‎internal_filesystem/boot_unix.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def catch_escape_key(indev, indev_data):
7575
# so it needs a software power off to prevent it from staying hot all the time and quickly draining the battery.
7676
# 1) Initialize camera, otherwise it doesn't reply to I2C commands:
7777
try:
78-
fromcameraimportCamera,GrabMode,PixelFormat,FrameSize,GainCeiling
78+
fromcameraimportCamera
7979
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)
8080
cam.deinit()
8181
exceptExceptionase:
@@ -84,8 +84,9 @@ def catch_escape_key(indev, indev_data):
8484
try:
8585
frommachineimportPin,I2C
8686
i2c=I2C(1,scl=Pin(16),sda=Pin(21))# Adjust pins and frequency
87-
#devices = i2c.scan()
88-
#print([hex(addr) for addr in devices]) # finds it on 60 = 0x3C after init
87+
devices=i2c.scan()
88+
print("Scan of I2C bus on scl=16, sda=21:")
89+
print([hex(addr)foraddrindevices])# finds it on 60 = 0x3C after init
8990
camera_addr=0x3C# for OV5640
9091
reg_addr=0x3008
9192
reg_high= (reg_addr>>8)&0xFF# 0x30
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CURRENT_OS_VERSION="0.0.7"
1+
CURRENT_OS_VERSION="0.0.8"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp