From a7d153abcb10474609c490621aa8fc506528ad94 Mon Sep 17 00:00:00 2001 From: geeksville Date: Wed, 29 Apr 2020 12:57:34 -0700 Subject: [PATCH] CUSTOM GPIOs the SX1262MB2CAS shield when installed on the NRF52840-DK development board --- .vscode/launch.json | 32 ---------------------------- platformio.ini | 4 ++-- variants/pca10056-rc-clock/variant.h | 6 ++++++ 3 files changed, 8 insertions(+), 34 deletions(-) delete mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 914831d68..000000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,32 +0,0 @@ -// AUTOMATICALLY GENERATED FILE. PLEASE DO NOT MODIFY IT MANUALLY - -// PIO Unified Debugger -// -// Documentation: https://docs.platformio.org/page/plus/debugging.html -// Configuration: https://docs.platformio.org/page/projectconf/section_env_debug.html - -{ - "version": "0.2.0", - "configurations": [ - { - "type": "platformio-debug", - "request": "launch", - "name": "PIO Debug", - "executable": "/home/kevinh/development/meshtastic/meshtastic-esp32/.pio/build/tbeam/firmware.elf", - "toolchainBinDir": "/home/kevinh/.platformio/packages/toolchain-xtensa32/bin", - "preLaunchTask": { - "type": "PlatformIO", - "task": "Pre-Debug" - }, - "internalConsoleOptions": "openOnSessionStart" - }, - { - "type": "platformio-debug", - "request": "launch", - "name": "PIO Debug (skip Pre-Debug)", - "executable": "/home/kevinh/development/meshtastic/meshtastic-esp32/.pio/build/tbeam/firmware.elf", - "toolchainBinDir": "/home/kevinh/.platformio/packages/toolchain-xtensa32/bin", - "internalConsoleOptions": "openOnSessionStart" - } - ] -} \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index 9d10d06a6..ceb57fbc6 100644 --- a/platformio.ini +++ b/platformio.ini @@ -9,7 +9,7 @@ ; https://docs.platformio.org/page/projectconf.html [platformio] -default_envs = tbeam ; Note: the github actions CI test build can't yet build NRF52 targets +default_envs = nrf52dk ; Note: the github actions CI test build can't yet build NRF52 targets [common] ; common is not currently used @@ -74,7 +74,7 @@ lib_deps = https://github.com/meshtastic/arduino-fsm.git https://github.com/meshtastic/SparkFun_Ublox_Arduino_Library.git https://github.com/jgromes/RadioLib.git - + ; Common settings for ESP targes, mixin with extends = esp32_base [esp32_base] src_filter = diff --git a/variants/pca10056-rc-clock/variant.h b/variants/pca10056-rc-clock/variant.h index ee939780b..db5c71b67 100644 --- a/variants/pca10056-rc-clock/variant.h +++ b/variants/pca10056-rc-clock/variant.h @@ -139,6 +139,12 @@ static const uint8_t SCK = PIN_SPI_SCK; #define EXTERNAL_FLASH_DEVICES MX25R6435F #define EXTERNAL_FLASH_USE_QSPI +// CUSTOM GPIOs the SX1262MB2CAS shield when installed on the NRF52840-DK development board +#define SX1262_CS (32 + 8) // P1.08 +#define SX1262_DIO1 (32 + 6) // P1.06 +#define SX1262_RESET (0 + 3) // P0.03 +#define SX1262_ANT_SW (32 + 10) // P1.10 + #ifdef __cplusplus } #endif