From 6dcc0d4fa0a21ff5dbf0c46830c928de4970c467 Mon Sep 17 00:00:00 2001 From: Rob Berwick Date: Mon, 1 Jan 2024 20:07:58 +0000 Subject: [PATCH 1/3] Add I2C pin definitions to motor2040 header Add definitions for the QW/ST connector SDA & SCL pins --- libraries/motor2040/motor2040.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/motor2040/motor2040.hpp b/libraries/motor2040/motor2040.hpp index 0e6180c1..2ab4e212 100644 --- a/libraries/motor2040/motor2040.hpp +++ b/libraries/motor2040/motor2040.hpp @@ -49,6 +49,9 @@ namespace motor { const uint USER_SW = 23; + const uint I2C_SDA = 20; + const uint I2C_SCL = 21; + const uint ADC_ADDR_0 = 22; const uint ADC_ADDR_1 = 24; const uint ADC_ADDR_2 = 25; From 3e81b245a1a16e3d791bf92210b822b52a7791ef Mon Sep 17 00:00:00 2001 From: Rob Berwick Date: Mon, 8 Jan 2024 12:57:30 +0000 Subject: [PATCH 2/3] add I2C_INT & reorder Add `I2C_INT` to `motor2040.hpp` and put pin defs in numeric order. --- libraries/motor2040/motor2040.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/motor2040/motor2040.hpp b/libraries/motor2040/motor2040.hpp index 2ab4e212..846e1a72 100644 --- a/libraries/motor2040/motor2040.hpp +++ b/libraries/motor2040/motor2040.hpp @@ -47,11 +47,12 @@ namespace motor { const uint LED_DATA = 18; const uint NUM_LEDS = 1; - const uint USER_SW = 23; - + const uint I2C_INT = 19; const uint I2C_SDA = 20; const uint I2C_SCL = 21; + const uint USER_SW = 23; + const uint ADC_ADDR_0 = 22; const uint ADC_ADDR_1 = 24; const uint ADC_ADDR_2 = 25; From 9e6a0725c03daaaa8777a4e798c8c13fabf61000 Mon Sep 17 00:00:00 2001 From: Rob Berwick Date: Mon, 8 Jan 2024 12:59:30 +0000 Subject: [PATCH 3/3] add `I2C_*` definitions to `servo2040.hpp` Add pin definitions for `I2C_INT`, `I2C_SDA`, and `I2C_SCL` to `servo2040.hpp` --- libraries/servo2040/servo2040.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/servo2040/servo2040.hpp b/libraries/servo2040/servo2040.hpp index 26e6d7c6..52e47943 100644 --- a/libraries/servo2040/servo2040.hpp +++ b/libraries/servo2040/servo2040.hpp @@ -30,6 +30,10 @@ namespace servo { const uint LED_DATA = 18; const uint NUM_LEDS = 6; + const uint I2C_INT = 19; + const uint I2C_SDA = 20; + const uint I2C_SCL = 21; + const uint USER_SW = 23; const uint ADC_ADDR_0 = 22;