Closed faultylee closed 10 years ago
I've managed to use only 8bit interface by setting RCM[1:0] = "10"
for 6bit interface mode, and RGB is sent via 3 individual bytes. Though I'm not sure how to modify the code to send RGB in 3 separate bytes instead of 2 when buswidth=8
. Would this approach be harder then making buswidth=16
works?
I've found a jumper on the flex cable from the panel to the PCB, R2
and R3
. Shifting the 0ohm
resistor from R2
to R3
turn it into 8bit interface.
Hi, I've recently bought a 2.8" Alientek TFTLCD from Shanghai without much documentation. I've managed to figure out from trial and error that it's running on ILI9341 based on the ID of the device. I've since been able to draw something onto the LCD using python. I then went ahead to do
sudo modprobe fbtft_device custom name=fb_ili9341 debug=0 width=240 height=320 rotate=270 bgr=0 buswidth=8 gpios=...
and it works but everything is in red. Only later I realized that I can't change the interface bit size from 16bit to 8bit. The jumper on the LCD is not doing anything. So decided to wire up the 16bit interface and change tobuswidth=16
. I then get the error below. I think the key here isno default functions for regwidth=8 and buswidth=16
. I wonder if changingfb_ili9341.c
line:156 from.regwidth = 8,
to.regwidth = 16,
would do the trick?dmesg: