Support for ili9486
See original GitHub issueType 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
bounce
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (1 by maintainers)
Top GitHub Comments
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.
Rotation (on the command line of the luma.examples) works nicely, too.