From fe6266e2a8d4fcb71059edf0610055062b5253ec Mon Sep 17 00:00:00 2001 From: Phillip Burgess Date: Sun, 17 Mar 2019 18:57:03 -0700 Subject: [PATCH] Bump version #, enable DMA by default on PyPortal --- Adafruit_SPITFT.h | 8 ++++++-- library.properties | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Adafruit_SPITFT.h b/Adafruit_SPITFT.h index b57b896..d11f484 100644 --- a/Adafruit_SPITFT.h +++ b/Adafruit_SPITFT.h @@ -66,8 +66,12 @@ typedef volatile PORT_t* PORTreg_t; ///< PORT register type #define DEFAULT_SPI_FREQ 16000000L ///< Hardware SPI default speed #endif -//#define USE_SPI_DMA ///< If set, use SPI DMA if available -// Another "oops" name -- in the future parallel DMA will also be handled. +#if defined(ADAFRUIT_PYPORTAL) +#define USE_SPI_DMA ///< Auto DMA if using PyPortal +#else +//#define USE_SPI_DMA ///< If set, use DMA if available +#endif +// Another "oops" name -- this now also handles parallel DMA. // If DMA is enabled, Arduino sketch MUST #include // Estimated RAM usage: // 4 bytes/pixel on display major axis + 8 bytes/pixel on minor axis, diff --git a/library.properties b/library.properties index c4c3e3e..de473d4 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Adafruit GFX Library -version=1.4.4 +version=1.4.5 author=Adafruit maintainer=Adafruit sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from.