question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for ili9486

See original GitHub issue

Type of Raspberry Pi

RPi 4 Model B

Linux Kernel version

Linux raspberrypi 5.10.0-rc4-v7l+ #1372 SMP Tue Nov 17 14:26:25 GMT 2020 armv7l GNU/Linux

Description

This is not an issue with luma.lcd. It is instead a request for help in adding ili9486 support.

The display is alive, and luma.lcd can turn it on and off. Those commands and the column, row commands have not changed from the ili9341.

The display is definitely not correct though. The attached images show what’s going on for the demo and bounce examples from luma.examples. I was just curious whether you’ve seen anything resembling that before and had any advice. It’s almost like some sort of odd interlacing mode.

You’re under absolutely no obligation to help, of course. 😃 If you don’t have any suggestions, I can just close this issue out.

Modification to device.py at this point amount to the following, adapted from the MIT Licensed code at

https://github.com/bkosciow/gfxlcd/blob/master/gfxlcd/driver/ili9486/ili9486.py

        self.command(0x0b, 0x00, 0x00)                      # Read Display MADCTL
        self.command(0x11)                                  # sleep out
        self.command(0x3a, 0x66)                            # Interface Pixel Format
        self.command(0x36, 0x88)                            # Memory Access control (rotations)
        self.command(0xc2, 0x44)                            # Power Control 3 (for normal mode)
        self.command(0xc5, 0x00, 0x00, 0x00, 0x00)          # VCOM control

        self.command(0x0e,                                  # Positive Gamma control
                     0x0f, 0x1f, 0x1c, 0x0c, 0x0f, 0x08, 0x48, 0x98,
                     0x37, 0x0a, 0x13, 0x04, 0x11, 0x0d, 0x00)
        self.command(0xe1,                                  # Negative Gamma control
                     0x0f, 0x32, 0x2e, 0x0b, 0x0d, 0x05, 0x47, 0x75,
                     0x37, 0x06, 0x10, 0x03, 0x24, 0x20, 0x00)
        self.command(0xe2,                                  # Digital Gamma control 1
                     0x0f, 0x32, 0x2e, 0x0b, 0x0d, 0x05, 0x47, 0x75,
                     0x37, 0x06, 0x10, 0x03, 0x24, 0x20, 0x00)
        self.command(0x21)                                  # Display inversion ON for LCD(B)
        self.command(0x11)                                  # sleep out
        self.clear()
        self.show()

I’m just hard-coding rotation at this point. I need another 90-degress of course to get into a landscape orientation, but I thought the existing view captured the problem nicely.

Thanks, Matt

demo

IMG-0702_sm

bounce

IMG-0704_sm

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mattblovellcommented, Dec 6, 2020

Here’s my application on the (rotated) display. The update speed is perfectly adequate for this usage.

I’ll get the code cleaned up for submission.

IMG-0713_sm

1reaction
mattblovellcommented, Dec 4, 2020

Rotation (on the command line of the luma.examples) works nicely, too.

IMG-0710_sm

Read more comments on GitHub >

github_iconTop Results From Across the Web

ILI9486 driver 3.5 inch TFT LCD Touch Screen
The Adafruit library does not support the ILI9486 driver. Actually, the Adafruit library is written to control only TFT displays smaller than 3.5...
Read more >
Request: Support for ILI9486 TFT LCD · Issue #104 - GitHub
Hello, I recently purchased a touch screen module to go with my Arduino Mega 2560. The demo documentation was easy enough to follow, ......
Read more >
NOOB -Support for ILI9486? - Get started - LVGL Forum
I'm a bit of a C++ / Android noob, so before I go too far, can someone tell me if it supports the...
Read more >
TFT LCD Screen Display, Support 3.3V 5V 3.5 ... - Walmart.com
TFT LCD Screen Display, Support 3.3V 5V 3.5 Inch Support ILI9486 Driver Wide Viewing Angle 3.5inch TFT LCD Screen Module For Development Board....
Read more >
Connect a UNO to a 4" LCD (420X380 ) with ILI9486 driver in ...
I try to connect a UNO to a 4" LCD (420X380 ) with ILI9486 driver in ... ILI9486_SPI and GFX_TFT with support for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found