Skip to content

Commit

Permalink
disable double render buffering for AMOLED for 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Jan 11, 2025
1 parent 347019f commit df9ee59
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,26 @@
// To save RAM only include the driver we want to use.
#ifdef DISPLAY_RM67162_AMOLED
#include "displays/Rm67162Amoled.h"
#elif defined(DISPLAY_LED_MATRIX)
#else
#include "displays/LEDMatrix.h"
#endif

#define N_CTRL_CHARS 5
#define N_INTERMEDIATE_CTR_CHARS 4
#ifdef BOARD_HAS_PSRAM
#define NUM_BUFFERS 128 // Number of buffers
#ifdef DISPLAY_RM67162_AMOLED
// @fixme double buffering doesn't work on Lilygo Amoled
#define NUM_RENDER_BUFFERS 1
#else
#define NUM_RENDER_BUFFERS 2
#endif
#else
#define NUM_BUFFERS 16 // Number of buffers
#define NUM_RENDER_BUFFERS 1
#endif
#define BUFFER_SIZE 1152
#if defined(ARDUINO_ESP32_S3_N16R8) || defined(DISPLAY_RM67162_AMOLED)
#if defined(ARDUINO_ESP32_S3_N16R8)
#define SERIAL_BAUD 2000000 // Serial baud rate.
#else
#define SERIAL_BAUD 921600 // Serial baud rate.
Expand Down

0 comments on commit df9ee59

Please sign in to comment.