From 3a86d4b44ea91e6aa28bd94597d52640cc0cdf41 Mon Sep 17 00:00:00 2001 From: Johnathon Slightham Date: Tue, 15 Jul 2025 21:24:09 -0400 Subject: [PATCH] Update pins --- components/constants/include/constants/module.h | 4 ++-- components/rmt/include/RMTManager.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/constants/include/constants/module.h b/components/constants/include/constants/module.h index 2045687..406d95a 100644 --- a/components/constants/include/constants/module.h +++ b/components/constants/include/constants/module.h @@ -9,10 +9,10 @@ #include "flatbuffers_generated/RobotModule_generated.h" -inline std::unordered_map MODULE_TO_NUM_CHANNELS_MAP {{ModuleType_SPLITTER, 2}, {ModuleType_SERVO_1, 2}, {ModuleType_DC_MOTOR, 1}}; +inline std::unordered_map MODULE_TO_NUM_CHANNELS_MAP {{ModuleType_SPLITTER, 4}, {ModuleType_SERVO_1, 2}, {ModuleType_DC_MOTOR, 1}}; #define PC_ADDR 0 -#define SERVO_GPIO 18 +#define SERVO_GPIO 1 #endif //MODULE_H diff --git a/components/rmt/include/RMTManager.h b/components/rmt/include/RMTManager.h index 507bb82..ecabbeb 100644 --- a/components/rmt/include/RMTManager.h +++ b/components/rmt/include/RMTManager.h @@ -91,7 +91,7 @@ class RMTManager{ // rmt_channel_handle_t tx_chan; - const gpio_num_t tx_gpio[MAX_CHANNELS] = {GPIO_NUM_1, GPIO_NUM_2, GPIO_NUM_3, GPIO_NUM_4}; //using pins 1,2,3,4 for channels 0,1,2,3 respectively for tx + const gpio_num_t tx_gpio[MAX_CHANNELS] = {GPIO_NUM_3, GPIO_NUM_5, GPIO_NUM_11, GPIO_NUM_13}; //using pins 1,2,3,4 for channels 0,1,2,3 respectively for tx // gpio_num_t tx_gpio[MAX_CHANNELS] = {GPIO_NUM_1}; //using pins 1,2,3,4 for channels 0,1,2,3 respectively for tx // rmt_encoder_context_t encoder_context = {0}; @@ -107,7 +107,7 @@ class RMTManager{ //=====================RX===================== rmt_channel_handle_t rx_chan; - const gpio_num_t rx_gpio[MAX_CHANNELS] = {GPIO_NUM_12, GPIO_NUM_13, GPIO_NUM_14, GPIO_NUM_15}; //using pins 12,13,14,15 for channels 0,1,2,3 respectively for rx + const gpio_num_t rx_gpio[MAX_CHANNELS] = {GPIO_NUM_4, GPIO_NUM_6, GPIO_NUM_12, GPIO_NUM_14}; //using pins 12,13,14,15 for channels 0,1,2,3 respectively for rx // gpio_num_t rx_gpio[MAX_CHANNELS] = {GPIO_NUM_12}; //using pins 12,13,14,15 for channels 0,1,2,3 respectively for rx // QueueHandle_t receive_queue = NULL;