File tree Expand file tree Collapse file tree 3 files changed +19
-12
lines changed
Expand file tree Collapse file tree 3 files changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -140,16 +140,22 @@ menu "On-chip Peripheral"
140140 default n
141141 endif
142142
143- menuconfig BSP_USING_I2C
144- bool "Enable I2C BUS (software simulation)"
143+ menuconfig BSP_USING_I2C1
144+ bool "Enable I2C1 BUS (software simulation)"
145145 default n
146146 select RT_USING_I2C
147147 select RT_USING_I2C_BITOPS
148148 select RT_USING_PIN
149- if BSP_USING_I2C
150- config BSP_USING_I2C1
151- bool "Enable I2C1"
152- default n
149+ if BSP_USING_I2C1
150+ comment "Notice: PB6 --> 22; PB7 --> 23"
151+ config BSP_I2C1_SCL_PIN
152+ int "I2C1 scl pin number"
153+ range 1 176
154+ default 22
155+ config BSP_I2C1_SDA_PIN
156+ int "I2C1 sda pin number"
157+ range 1 176
158+ default 23
153159 endif
154160
155161 menuconfig BSP_USING_SDIO
Original file line number Diff line number Diff line change @@ -30,8 +30,9 @@ if GetDepend(['BSP_USING_OV2640']):
3030if GetDepend (['BSP_USING_TIM' ]):
3131 src += Glob ('drv_hwtimer.c' )
3232
33- if GetDepend (['BSP_USING_I2C' ]):
34- src += Glob ('drv_soft_i2c.c' )
33+ if GetDepend (['RT_USING_I2C' , 'RT_USING_I2C_BITOPS' ]):
34+ if GetDepend ('BSP_USING_I2C1' ) or GetDepend ('BSP_USING_I2C2' ) or GetDepend ('BSP_USING_I2C3' ) or GetDepend ('BSP_USING_I2C4' ):
35+ src += ['drv_soft_i2c.c' ]
3536
3637path = [cwd ]
3738path += [cwd + '/include' ]
Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ struct drv_lcd_device
3535
3636#define LCD_HSYNC_WIDTH 1
3737#define LCD_VSYNC_HEIGHT 1
38- #define LCD_HBP 46
39- #define LCD_VBP 23
40- #define LCD_HFP 210
41- #define LCD_VFP 22
38+ #define LCD_HBP 88
39+ #define LCD_VBP 32
40+ #define LCD_HFP 40
41+ #define LCD_VFP 13
4242
4343#define LCD_BACKLIGHT_USING_GPIO
4444#define LCD_BL_GPIO_NUM GET_PIN(D, 4)
You can’t perform that action at this time.
0 commit comments