From 4306c32349e7448bfe02c6b04278fffe641f2f47 Mon Sep 17 00:00:00 2001 From: Mark Trevor Birss Date: Mon, 17 Jul 2023 16:20:42 +0200 Subject: [PATCH] Update variant.h (#2620) Update M5Stack CoreInk enable GPS/BDS Co-authored-by: Ben Meadors --- variants/m5stack_coreink/variant.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/variants/m5stack_coreink/variant.h b/variants/m5stack_coreink/variant.h index 37131caca..3abf16be7 100644 --- a/variants/m5stack_coreink/variant.h +++ b/variants/m5stack_coreink/variant.h @@ -1,7 +1,19 @@ +// Primary I2C Bus includes PCF8563 RTC Module #define I2C_SDA 21 #define I2C_SCL 22 -// LED? +// 7-07-2023 Or enable Secondary I2C Bus +//#define I2C_SDA1 32 +//#define I2C_SCL1 33 + +#define HAS_GPS 1 +#undef GPS_RX_PIN +#undef GPS_TX_PIN +// Use Secondary I2C Bus as GPS Serial +#define GPS_RX_PIN 33 +#define GPS_TX_PIN 32 + +// Green LED #define LED_INVERTED 0 #define LED_PIN 10 @@ -37,10 +49,6 @@ #define LORA_DIO1 RADIOLIB_NC #define LORA_DIO2 RADIOLIB_NC -// This board has no GPS for now -#undef GPS_RX_PIN -#undef GPS_TX_PIN - #define USE_EINK // https://docs.m5stack.com/en/core/coreink // https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/schematic/Core/coreink/coreink_sch.pdf