Browse Source

Make ili9341 rotatable (e.g., Anycubic Predator) (#18877)

Claus Näveke 4 years ago
parent
commit
181a35181b
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/lcd/dogm/u8g_dev_tft_320x240_upscale_from_128x64.cpp

+ 1
- 1
Marlin/src/lcd/dogm/u8g_dev_tft_320x240_upscale_from_128x64.cpp View File

366
 static const uint16_t ili9341_init[] = {
366
 static const uint16_t ili9341_init[] = {
367
   ESC_REG(0x0010), ESC_DELAY(10),
367
   ESC_REG(0x0010), ESC_DELAY(10),
368
   ESC_REG(0x0001), ESC_DELAY(200),
368
   ESC_REG(0x0001), ESC_DELAY(200),
369
-  ESC_REG(0x0036), 0x00E8,
369
+  ESC_REG(0x0036), TERN(GRAPHICAL_TFT_ROTATE_180, 0x00E8, 0x0028),
370
   ESC_REG(0x003A), 0x0055,
370
   ESC_REG(0x003A), 0x0055,
371
   ESC_REG(0x002A), 0x0000, 0x0000, 0x0001, 0x003F,
371
   ESC_REG(0x002A), 0x0000, 0x0000, 0x0001, 0x003F,
372
   ESC_REG(0x002B), 0x0000, 0x0000, 0x0000, 0x00EF,
372
   ESC_REG(0x002B), 0x0000, 0x0000, 0x0000, 0x00EF,

Loading…
Cancel
Save