Skip to content

Commit 6181a08

Browse files
camtest: cleanup
1 parent c1af6c4 commit 6181a08

1 file changed

Lines changed: 0 additions & 39 deletions

File tree

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

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

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,5 @@
11
appscreen = lv.screen_active()
22

3-
#define PWDN_GPIO_NUM 17 //power down is not used
4-
#define RESET_GPIO_NUM -1 //software reset will be performed
5-
#define XCLK_GPIO_NUM 8
6-
#define SIOD_GPIO_NUM 21
7-
#define SIOC_GPIO_NUM 16
8-
9-
#define Y9_GPIO_NUM 2
10-
#define Y8_GPIO_NUM 7
11-
#define Y7_GPIO_NUM 10
12-
#define Y6_GPIO_NUM 14
13-
#define Y5_GPIO_NUM 11
14-
#define Y4_GPIO_NUM 15
15-
#define Y3_GPIO_NUM 13
16-
#define Y2_GPIO_NUM 12
17-
#define VSYNC_GPIO_NUM 6
18-
#define HREF_GPIO_NUM 4
19-
#define PCLK_GPIO_NUM 9
20-
21-
#define CAM_LEDC_TIMER LEDC_TIMER_1
22-
#define CAM_LEDC_CHANNEL LEDC_CHANNEL_0
23-
24-
25-
# OV5640 I2C address
26-
#sensor_addr = 0x3C
27-
#reg_addr = 0x4300
28-
#reg_value = 0x6F # RGB565 (bit[6]=1) + sequence 0xF (bits[3:0]=0xF)
29-
#from machine import I2C, Pin
30-
#i2c = I2C(scl=Pin(16), sda=Pin(21))
31-
#i2c.readfrom_mem(0x3C, 0x4300, 1)
32-
#i2c.writeto_mem(sensor_addr, reg_addr, bytes([reg_value]))
33-
34-
35-
#width = 480
36-
#height = 320
37-
#width = 320
38-
#height = 240
39-
#width = 120
40-
#height = 160
41-
423
keepgoing = True
434
width = 240
445
height = 240

0 commit comments

Comments
 (0)