feat: 支持 IO 扩展芯片 PCA9555 与 EC11 编码器的集成。 issue #3.
This commit is contained in:
@ -65,43 +65,43 @@ menu "MQTT Configuration"
|
||||
endmenu
|
||||
|
||||
menu "Encoder Configuration"
|
||||
config ENCODER_0_CLK_PIN
|
||||
int "encoder 0 clock GPIO"
|
||||
range 0 32
|
||||
config ENCODER_0_CLK_PORT_IO
|
||||
int "encoder 0 clock IO"
|
||||
range 0 7
|
||||
default 1
|
||||
help
|
||||
Encoder 0 clock io on PCA9555 port 1
|
||||
config ENCODER_0_DT_PORT_IO
|
||||
int "encoder 0 data IO"
|
||||
range 0 7
|
||||
default 2
|
||||
help
|
||||
Encoder 0 clock pin
|
||||
config ENCODER_0_DT_PIN
|
||||
int "encoder 0 data GPIO"
|
||||
range 0 32
|
||||
default 3
|
||||
help
|
||||
Encoder 0 clock data
|
||||
config ENCODER_0_SW_PIN
|
||||
int "encoder 0 switch GPIO"
|
||||
range 0 32
|
||||
config ENCODER_0_SW_PORT_IO
|
||||
int "encoder 0 switch IO"
|
||||
range 0 7
|
||||
default 0
|
||||
help
|
||||
Encoder 0 switch io on PCA9555 port 1
|
||||
|
||||
config ENCODER_1_CLK_PORT_IO
|
||||
int "encoder 1 clock IO"
|
||||
range 0 7
|
||||
default 4
|
||||
help
|
||||
Encoder 0 switch pin
|
||||
|
||||
config ENCODER_1_CLK_PIN
|
||||
int "encoder 1 clock GPIO"
|
||||
range 0 32
|
||||
Encoder 1 clock io on PCA9555 port 1
|
||||
config ENCODER_1_DT_PORT_IO
|
||||
int "encoder 1 data IO"
|
||||
range 0 7
|
||||
default 5
|
||||
help
|
||||
Encoder 1 clock pin
|
||||
config ENCODER_1_DT_PIN
|
||||
int "encoder 1 data GPIO"
|
||||
range 0 32
|
||||
default 6
|
||||
help
|
||||
Encoder 1 clock data
|
||||
config ENCODER_1_SW_PIN
|
||||
int "encoder 1 switch GPIO"
|
||||
range 0 32
|
||||
default 7
|
||||
config ENCODER_1_SW_PORT_IO
|
||||
int "encoder 1 switch IO"
|
||||
range 0 7
|
||||
default 3
|
||||
help
|
||||
Encoder 1 switch pin
|
||||
Encoder 1 switch io on PCA9555 port 1
|
||||
|
||||
endmenu
|
||||
|
||||
@ -109,13 +109,13 @@ menu "I2C Configuration"
|
||||
config I2C_SCL
|
||||
int "I2C SCL GPIO"
|
||||
range 0 32
|
||||
default 8
|
||||
default 5
|
||||
help
|
||||
I2C SCL GPIO
|
||||
config I2C_SDA
|
||||
int "I2C SDA GPIO"
|
||||
range 0 32
|
||||
default 10
|
||||
default 4
|
||||
help
|
||||
I2C SDA GPIO
|
||||
config I2C_NUM
|
||||
|
Reference in New Issue
Block a user