mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 22:35:12 +03:00
LCD_DUAL_BUFFER optional (speed vs RAM)
This commit is contained in:
parent
e4de0da0bb
commit
f2ed441916
6 changed files with 52 additions and 19 deletions
|
@ -37,7 +37,7 @@
|
|||
#include "opentx.h"
|
||||
|
||||
|
||||
#if defined(LCD_DUAL_BUFFER)
|
||||
#if defined(PCBTARANIS) && defined(REVPLUS) && defined(LCD_DUAL_BUFFER)
|
||||
display_t displayBuf1[DISPLAY_BUF_SIZE];
|
||||
display_t displayBuf2[DISPLAY_BUF_SIZE];
|
||||
display_t * displayBuf = displayBuf1;
|
||||
|
@ -47,6 +47,7 @@ display_t displayBuf[DISPLAY_BUF_SIZE];
|
|||
|
||||
void lcd_clear()
|
||||
{
|
||||
lcdWaitDmaEnd();
|
||||
memset(displayBuf, 0, DISPLAY_BUFER_SIZE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue