Unverified Commit 2c01c41c authored by Bodmer's avatar Bodmer Committed by GitHub

Disable DMA as default

parent aa4a32bc
......@@ -32,7 +32,7 @@
// DMA can be used with STM32 and ESP32 processors when the interface
// is SPI, uncomment the next line:
#define USE_DMA
//#define USE_DMA
// Load TFT driver library
#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
#ifdef USE_DMA
#define BUFFERS 2 // 2 toggle buffers with DMA
#define BUFFERS 2 // 2 toggle buffers with DMA
#else
#define BUFFERS 1 // 1 buffer for no DMA
#define BUFFERS 1 // 1 buffer for no DMA
#endif
uint16_t pbuffer[BUFFERS][BUFFER_SIZE]; // Pixel rendering buffer
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment