Skip to content
Discussion options

You must be logged in to vote

Arduino_ILI9341 actually have 3 type init instruction sets defined, default using ili9341_type1_init_operations. you may try replace the code

Arduino_GFX *tft = new Arduino_ILI9341(bus, TFT_RST);

with

Arduino_GFX *tft = new Arduino_ILI9341(
  bus, TFT_RST, 0 /* rotation */, false /* ips */, ILI9341_TFTWIDTH, ILI9341_TFTHEIGHT,
  bus, TFT_RST, 0 /* rotation */, true /* IPS */, 240 /* width */, 320 /* height */,
  52 /* col offset 1 */, 40 /* row offset 1 */, 53 /* col offset 2 */, 40 /* row offset 2 */,
  ili9341_type2_init_operations, sizeof(ili9341_type2_init_operations)
);

or ili9341_type3_init_operations to check the effect.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@embedded-kiddie
Comment options

@embedded-kiddie
Comment options

Answer selected by embedded-kiddie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants