From f1bf884e9445c7c276b88cb58d2ce6a66a9d6186 Mon Sep 17 00:00:00 2001 From: WereCatf Date: Tue, 24 Nov 2020 04:54:43 +0200 Subject: [PATCH] Fix for Heltec CubeCell Heltec's CubeCell Arduino-core is (currently) missing the functions used for direct register-manipulation, so do not defined HAVE_PORTREG for now. This fix can always be removed, if Heltec ever comes around to implementing said functions. --- Adafruit_SSD1306.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Adafruit_SSD1306.h b/Adafruit_SSD1306.h index eaa6f923..dece29b1 100644 --- a/Adafruit_SSD1306.h +++ b/Adafruit_SSD1306.h @@ -49,7 +49,7 @@ typedef volatile RwReg PortReg; typedef uint32_t PortMask; #define HAVE_PORTREG #elif (defined(__arm__) || defined(ARDUINO_FEATHER52)) && \ - !defined(ARDUINO_ARCH_MBED) + !defined(ARDUINO_ARCH_MBED) && !defined(__ASR6501__) typedef volatile uint32_t PortReg; typedef uint32_t PortMask; #define HAVE_PORTREG