From 8e90bb69967a15256cf21a95683cff57a0d9ef83 Mon Sep 17 00:00:00 2001 From: Neil McKechnie Date: Tue, 21 Feb 2023 11:07:19 +0000 Subject: [PATCH] Enable extended addresses and extended OLED characters on all but Nano, Uno and Mega4809.. Define I2C_EXTENDED_ADDRESS on most platforms, and define NO_EXTENDED_CHARACTERS on Nano, Uno and Mega4809. --- defines.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/defines.h b/defines.h index 9748824..88f7fb4 100644 --- a/defines.h +++ b/defines.h @@ -43,6 +43,9 @@ #undef USB_SERIAL // Teensy has this defined by default... #define USB_SERIAL Serial +// Include extended addresses unless specifically excluded +#define I2C_EXTENDED_ADDRESS + #if defined(ARDUINO_AVR_UNO) #define ARDUINO_TYPE "UNO" #undef HAS_ENOUGH_MEMORY @@ -60,6 +63,8 @@ #elif defined(ARDUINO_ARCH_MEGAAVR) #define ARDUINO_TYPE "MEGAAVR" #undef HAS_ENOUGH_MEMORY +#define NO_EXTENDED_CHARACTERS +#undef I2C_EXTENDED_ADDRESS #elif defined(ARDUINO_TEENSY31) #define ARDUINO_TYPE "TEENSY3132" #undef USB_SERIAL