Skip to content

Commit

Permalink
Merge pull request #1 from xC0000005/tft_and_touch_screen
Browse files Browse the repository at this point in the history
Add driver definition for LERDGE init sequence.
  • Loading branch information
jmz52 authored Jun 27, 2020
2 parents 9052a5b + bd37801 commit 6128419
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
3 changes: 3 additions & 0 deletions Marlin/src/lcd/tft/tft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ void TFT::init() {
#elif TFT_DRIVER == ILI9488
lcd_id = ILI9488;
write_esc_sequence(ili9488_init);
#elif TFT_DRIVER == LERDGE_ST7796
lcd_id = ST7796;
write_esc_sequence(lerdge_st7796s_init);
#else
#error Unsupported TFT driver
#endif
Expand Down
15 changes: 8 additions & 7 deletions Marlin/src/lcd/tft/tft.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@
#error Unsupported display resolution!
#endif

#define ST7735 0x89F0
#define ST7789 0x8552
#define ST7796 0x7796
#define ILI9328 0x9328
#define ILI9341 0x9341
#define ILI9488 0x9488
#define AUTO 0xFFFF
#define ST7735 0x89F0
#define ST7789 0x8552
#define ST7796 0x7796
#define ILI9328 0x9328
#define ILI9341 0x9341
#define ILI9488 0x9488
#define LERDGE_ST7796 0xFFFE
#define AUTO 0xFFFF

#ifndef TFT_BUFFER_SIZE
#ifdef STM32F103xB
Expand Down

0 comments on commit 6128419

Please sign in to comment.