add LCD_HORIZONTAL_INVERT

This commit is contained in:
zhaobing
2022-08-20 10:59:50 +10:00
committed by Peter Feerick
parent 0c49cde607
commit e1ffa373e5
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -2257,6 +2257,9 @@
#if defined(RADIO_TX12) || defined(RADIO_TX12MK2) || defined(RADIO_ZORRO) || defined(RADIO_FAMILY_JUMPER_T12) || defined(RADIO_T8) || defined(RADIO_COMMANDO8) || defined(RADIO_TPRO)
#define LCD_VERTICAL_INVERT
#endif
#if defined(RADIO_LR3PRO)
#define LCD_HORIZONTAL_INVERT
#endif
#if defined(PCBX9E)
#define LCD_RCC_AHB1Periph (RCC_AHB1Periph_GPIOA | RCC_AHB1Periph_GPIOC | RCC_AHB1Periph_GPIOD | RCC_AHB1Periph_DMA1)
#define LCD_RCC_APB1Periph RCC_APB1Periph_SPI3
+1 -1
View File
@@ -117,7 +117,7 @@ void lcdStart()
#if defined(LCD_VERTICAL_INVERT)
// T12 and TX12 have the screen inverted.
lcdWriteCommand(0xe2); // (14) Soft reset
#if defined(RADIO_LR3PRO)
#if defined(LCD_HORIZONTAL_INVERT)
lcdWriteCommand(0xa1); // Set seg
#else
lcdWriteCommand(0xa0); // Set seg