mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-19 09:09:05 +00:00
ESP IDF Robot
This commit is contained in:
0
ESP-IDF_Robot/build/.ninja_lock
Normal file
0
ESP-IDF_Robot/build/.ninja_lock
Normal file
@@ -1 +1 @@
|
||||
9a0c79b0e4d531c8d8edffd14e8bd9a30e1eff80
|
||||
9703ea7f2b9bf4eaec4b374af1b1e7a6aff5cc80
|
||||
|
@@ -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