mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-19 06:13:22 +00:00
ESP IDF Robot
This commit is contained in:
@@ -38,6 +38,7 @@ static const char *TAG = "ESP IDF Robot";
|
||||
// Retrieve values from configuration menu
|
||||
#define BLINK_GPIO CONFIG_BLINK_GPIO // 10 GPIO of on-board LED
|
||||
#define PUSH_BTN_GPIO CONFIG_BUTTON_GPIO // 3 GPIO of on-board push-button
|
||||
#define MTR_FL_GPIO CONFIG_MOTOR_FRONT_LEFT_GPIO
|
||||
|
||||
#define ESP_INTR_FLAG_DEFAULT 0
|
||||
|
||||
@@ -129,6 +130,9 @@ static void configure_button (void) {
|
||||
}
|
||||
|
||||
static void configure_mcpwm (void) {
|
||||
|
||||
mcpwm_gpio_init(MCPWM_UNIT_0, MCPWM0A, MTR_FL_GPIO);
|
||||
|
||||
mcpwm_config_t mcpwm_config;
|
||||
|
||||
mcpwm_config.frequency = 4000;
|
||||
|
Reference in New Issue
Block a user