mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-09 23:54:43 +02:00
Disable DMA as default
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
// DMA can be used with STM32 and ESP32 processors when the interface
|
// DMA can be used with STM32 and ESP32 processors when the interface
|
||||||
// is SPI, uncomment the next line:
|
// is SPI, uncomment the next line:
|
||||||
#define USE_DMA
|
//#define USE_DMA
|
||||||
|
|
||||||
// Load TFT driver library
|
// Load TFT driver library
|
||||||
#include <SPI.h>
|
#include <SPI.h>
|
||||||
@@ -43,9 +43,9 @@ TFT_eSPI tft; // A single instance is used for 1 or 2 displays
|
|||||||
#define BUFFER_SIZE 1024 // 128 to 1024 seems optimum
|
#define BUFFER_SIZE 1024 // 128 to 1024 seems optimum
|
||||||
|
|
||||||
#ifdef USE_DMA
|
#ifdef USE_DMA
|
||||||
#define BUFFERS 2 // 2 toggle buffers with DMA
|
#define BUFFERS 2 // 2 toggle buffers with DMA
|
||||||
#else
|
#else
|
||||||
#define BUFFERS 1 // 1 buffer for no DMA
|
#define BUFFERS 1 // 1 buffer for no DMA
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint16_t pbuffer[BUFFERS][BUFFER_SIZE]; // Pixel rendering buffer
|
uint16_t pbuffer[BUFFERS][BUFFER_SIZE]; // Pixel rendering buffer
|
||||||
|
Reference in New Issue
Block a user