Fixed T18 support

This commit is contained in:
Raphael Coeffic
2021-05-28 09:40:46 +02:00
parent 564dda3412
commit 199afb8efa
3 changed files with 7 additions and 6 deletions
+6 -2
View File
@@ -8,8 +8,12 @@ elseif(PCB STREQUAL X12S)
set(BITMAP_TARGET_PREFIX x12s)
else()
set(BITMAP_TARGET_PREFIX x10)
set(BITMAP_ARGS ${BITMAP_ARGS} --reverse)
set(MASK_ARGS ${MASK_ARGS} --reverse)
if(PCBREV STREQUAL T18)
# straight screen
else()
set(BITMAP_ARGS ${BITMAP_ARGS} --reverse)
set(MASK_ARGS ${MASK_ARGS} --reverse)
endif()
endif()
set(BITMAP_RLE_ARGS ${BITMAP_ARGS} --rle)
-3
View File
@@ -535,9 +535,6 @@
#if defined(PCBX10) && !defined(RADIO_T18)
#define LCD_VERTICAL_INVERT
#endif
#if defined(PCBX10)
#define LCD_VERTICAL_INVERT
#endif
#define LTDC_IRQ_PRIO 4
#define DMA_SCREEN_IRQ_PRIO 6
+1 -1
View File
@@ -152,7 +152,7 @@ static void LCD_NRSTConfig(void)
static void lcdReset(void)
{
#if defined(RADIO_T18) // T18 screen has issues if NRST is ever brought low
NRST_HIGH();
LCD_NRST_HIGH();
#else
LCD_NRST_HIGH();
delay_ms(1);