From 43a6e711dad034125f4994fe52795f7df99932a2 Mon Sep 17 00:00:00 2001 From: Mictronics Date: Sun, 2 Mar 2025 13:15:30 +0100 Subject: [PATCH] RAK11310: Update to last building platform package and possibly fix for #5361 (#6202) --- variants/rak11310/platformio.ini | 2 +- variants/rak11310/variant.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/variants/rak11310/platformio.ini b/variants/rak11310/platformio.ini index d1da962ca..6dab54893 100644 --- a/variants/rak11310/platformio.ini +++ b/variants/rak11310/platformio.ini @@ -4,7 +4,7 @@ board = wiscore_rak11300 upload_protocol = picotool # keep an old SDK to use less memory. platform = https://github.com/maxgerhardt/platform-raspberrypi.git#v1.2.0-gcc12 -platform_packages = framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#3.7.2 +platform_packages = framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#4.0.1 # add our variants files to the include and src paths build_flags = ${rp2040_base.build_flags} diff --git a/variants/rak11310/variant.h b/variants/rak11310/variant.h index bc8d2d71b..2400d56a7 100644 --- a/variants/rak11310/variant.h +++ b/variants/rak11310/variant.h @@ -4,6 +4,12 @@ #define ARDUINO_ARCH_AVR +// Define I2C pins to ensure correct usage of both ports +#define I2C_SDA 20 +#define I2C_SCL 21 +#define I2C_SDA1 2 +#define I2C_SCL1 3 + #define LED_CONN PIN_LED2 #define LED_PIN LED_BUILTIN #define ledOff(pin) pinMode(pin, INPUT)