From 7d677a936714f14533cecffccf9781ebc91e3135 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Tue, 30 Jul 2019 15:30:25 -0700 Subject: [PATCH] Fixes SSD1351 on Metro M4 --- Adafruit_SSD1351.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Adafruit_SSD1351.cpp b/Adafruit_SSD1351.cpp index e5e27e4..403abc6 100644 --- a/Adafruit_SSD1351.cpp +++ b/Adafruit_SSD1351.cpp @@ -39,6 +39,8 @@ #define SPI_DEFAULT_FREQ 16000000 ///< ARC32 SPI default frequency #elif defined (__AVR__) || defined(TEENSYDUINO) #define SPI_DEFAULT_FREQ 8000000 ///< AVR SPI default frequency +#elif defined(__SAMD51__) + #define SPI_DEFAULT_FREQ 12000000 ///< M4 SPI default frequency #elif defined(ESP8266) || defined (ARDUINO_MAXIM) #define SPI_DEFAULT_FREQ 16000000 ///< ESP8266 SPI default frequency #elif defined(ESP32)