Disable DMA as default
This commit is contained in:
parent
aa4a32bc6b
commit
2c01c41c02
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue