From 9b3e7e5a21b510e0792c3065fb6b0b8cc7e383db Mon Sep 17 00:00:00 2001 From: taco Date: Wed, 9 Apr 2025 18:07:01 +1000 Subject: [PATCH 1/2] FIX: define OLED pins for RAK --- variants/rak4631/platformio.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/variants/rak4631/platformio.ini b/variants/rak4631/platformio.ini index 63d6b6b8..49955722 100644 --- a/variants/rak4631/platformio.ini +++ b/variants/rak4631/platformio.ini @@ -7,6 +7,9 @@ build_flags = ${nrf52840_base.build_flags} -I variants/rak4631 -D RAK_4631 -D PIN_USER_BTN=9 + -D PIN_BOARD_SCL=14 + -D PIN_BOARD_SDA=13 + -D PIN_OLED_RESET=-1 -D RADIO_CLASS=CustomSX1262 -D WRAPPER_CLASS=CustomSX1262Wrapper -D LORA_TX_POWER=22 From be64fa7ca022cc23ad1b8af30d787ebab3e10fd8 Mon Sep 17 00:00:00 2001 From: taco Date: Wed, 9 Apr 2025 18:22:01 +1000 Subject: [PATCH 2/2] build: fix RAK, T114, T1000 builds --- src/helpers/nrf52/RAK4631Board.cpp | 2 +- src/helpers/nrf52/T1000eBoard.cpp | 2 +- src/helpers/nrf52/T114Board.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers/nrf52/RAK4631Board.cpp b/src/helpers/nrf52/RAK4631Board.cpp index 4d2f0edf..8b368734 100644 --- a/src/helpers/nrf52/RAK4631Board.cpp +++ b/src/helpers/nrf52/RAK4631Board.cpp @@ -27,7 +27,7 @@ void RAK4631Board::begin() { #endif #if defined(PIN_BOARD_SDA) && defined(PIN_BOARD_SCL) - Wire.setPins(PIN_BOARD_SDA, PIN_BOARD_SCL) + Wire.setPins(PIN_BOARD_SDA, PIN_BOARD_SCL); #endif Wire.begin(); diff --git a/src/helpers/nrf52/T1000eBoard.cpp b/src/helpers/nrf52/T1000eBoard.cpp index c6fc27a9..a17711db 100644 --- a/src/helpers/nrf52/T1000eBoard.cpp +++ b/src/helpers/nrf52/T1000eBoard.cpp @@ -18,7 +18,7 @@ void T1000eBoard::begin() { #endif #if defined(PIN_BOARD_SDA) && defined(PIN_BOARD_SCL) - Wire.setPins(PIN_BOARD_SDA, PIN_BOARD_SCL) + Wire.setPins(PIN_BOARD_SDA, PIN_BOARD_SCL); #endif Wire.begin(); diff --git a/src/helpers/nrf52/T114Board.cpp b/src/helpers/nrf52/T114Board.cpp index d39b3e71..1f8c5854 100644 --- a/src/helpers/nrf52/T114Board.cpp +++ b/src/helpers/nrf52/T114Board.cpp @@ -27,7 +27,7 @@ void T114Board::begin() { pinMode(PIN_VBAT_READ, INPUT); #if defined(PIN_BOARD_SDA) && defined(PIN_BOARD_SCL) - Wire.setPins(PIN_BOARD_SDA, PIN_BOARD_SCL) + Wire.setPins(PIN_BOARD_SDA, PIN_BOARD_SCL); #endif Wire.begin();