Fixed non-color lcd cmake

No widgets necessary for B/W.
This commit is contained in:
Raphael Coeffic
2021-05-06 12:55:59 +02:00
committed by Raphael Coeffic
parent 72a7409d10
commit 3ba55ac34e
6 changed files with 9 additions and 12 deletions
+2 -9
View File
@@ -21,15 +21,7 @@
#include "lcd.h"
#include "simulcd.h"
// #if defined(SIMU)
// extern pixel_t displayBuf[DISPLAY_BUFFER_SIZE];
// #else
// #define displayBuf lcd->getData()
// #endif
// #define DISPLAY_END (displayBuf + DISPLAY_BUFFER_SIZE)
// #define ASSERT_IN_DISPLAY(p) assert((p) >= displayBuf && (p) < DISPLAY_END)
#if defined(COLORLCD)
BitmapBuffer _lcd(BMP_RGB565, LCD_W, LCD_H, displayBuf);
BitmapBuffer * lcd = &_lcd;
@@ -106,3 +98,4 @@ void DMABitmapConvert(uint16_t * dest, const uint8_t * src, uint16_t w, uint16_t
}
}
}
#endif