changed configmenu for V2
This commit is contained in:
@@ -1,4 +1,18 @@
|
||||
menu "DIY Power PCB Configuration"
|
||||
choice Version
|
||||
prompt "Hardware Version"
|
||||
default V2
|
||||
help
|
||||
Choose Version of the used PCB
|
||||
config V2
|
||||
bool "V2"
|
||||
help
|
||||
second Rev. of the DIY Power PCB
|
||||
config V1
|
||||
bool "V1"
|
||||
help
|
||||
first rev. of the DIY power PCB
|
||||
endchoice
|
||||
|
||||
orsource "$IDF_PATH/examples/common_components/env_caps/$IDF_TARGET/Kconfig.env_caps"
|
||||
menu "ADC 1 configurations"
|
||||
@@ -17,7 +31,7 @@ menu "DIY Power PCB Configuration"
|
||||
string "Current sensing ADC1 numbers of U, V, W"
|
||||
default "6, 3, 0"
|
||||
help
|
||||
ADC1 numbers of the current sensing pins at U,V and W. Write seperated by a comma. example:"34,29,36"
|
||||
ADC1 numbers of the current sensing pins at U,V and W. Write seperated by a comma. example:"34, 29, 36"
|
||||
config TORQUE_ADC
|
||||
int "Torque sensing ADC1 number"
|
||||
default 4
|
||||
@@ -80,21 +94,44 @@ menu "DIY Power PCB Configuration"
|
||||
endmenu
|
||||
menu "Input pin configurations"
|
||||
config IN_ENCODER_GPIO
|
||||
string "turning encoder(on board) GPIO pins: A, B, Button"
|
||||
default "3, 2, 23"
|
||||
string "Turning encoder (on board) GPIO pins: A, B, Button"
|
||||
help
|
||||
GPIO numbers of the pins connected to A,B and the button of the encoder
|
||||
GPIO numbers of the pins connected to A, B, and the button of the encoder.
|
||||
Automatically set based on the chosen hardware version.
|
||||
config IN_ENCODER_GPIO_V1
|
||||
string
|
||||
default "3, 2, 23"
|
||||
depends on V1
|
||||
|
||||
config IN_ENCODER_GPIO_V2
|
||||
string
|
||||
default "23, 1, 3"
|
||||
depends on V2
|
||||
|
||||
config IN_ENCODER_GPIO
|
||||
string
|
||||
default IN_ENCODER_GPIO_V1 if V1
|
||||
default IN_ENCODER_GPIO_V2 if V2
|
||||
|
||||
config IN_ENCODER_DEBOUNCE_TIME
|
||||
int "Debounce Time in ms"
|
||||
default "5"
|
||||
default "50"
|
||||
help
|
||||
debouncing time between Encoder turns
|
||||
if V1
|
||||
config BUTTON_GPIO
|
||||
int "button GPIO pin"
|
||||
default 1
|
||||
help
|
||||
GPIO number of the pin connected to the button on the pcb
|
||||
|
||||
endif
|
||||
if V2
|
||||
config ESP_LED
|
||||
int "ESP LED GPIO pin"
|
||||
default 2
|
||||
help
|
||||
GPIO number of the pin conneted to the LED on the ESP module
|
||||
endif
|
||||
config EXT_ENCODER_GPIO
|
||||
string "encoder(at motor) GPIO pins: Indx, Left, Right"
|
||||
default "16, 18, 5"
|
||||
@@ -106,12 +143,5 @@ menu "DIY Power PCB Configuration"
|
||||
help
|
||||
GPIO number of the pin connected to the RFE pin of the Bridge
|
||||
endmenu
|
||||
|
||||
config BLINK_PERIOD
|
||||
int "Blink period in ms"
|
||||
range 10 3600000
|
||||
default 1000
|
||||
help
|
||||
Define the blinking period in milliseconds.
|
||||
|
||||
endmenu
|
||||
|
||||
Reference in New Issue
Block a user