Disable DMA as default

This commit is contained in:
Bodmer 2020-11-09 12:15:26 +00:00 committed by GitHub
parent aa4a32bc6b
commit 2c01c41c02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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