Yay!! It works well 1000000000000%Helder wrote: ↑Thu Aug 23, 2018 5:16 pmTry this (it's the correct screen driver):ABH wrote: ↑Wed Aug 22, 2018 10:01 pmI found what the cause of screen mirroring
so no need to add anything to the config file.
options fbtft_device custom name=fb_ili9341 speed=80000000 rotate=270 fps=60 gpios=reset:25,dc:24 modprobe flexfb setaddrwin=0 width=240 height=320 init=-1,0x11,-2,120,-1,0x36,0x00,-1,0x3A,0x05,-1,0xB2,0x0C,0x0C,0x00,0x33,0x33,-1,0xB7,0x35,-1,0xBB,0x1A,-1,0xC0,0x2C,-1,0xC2,0x01,-1,0xC3,0x0B,-1,0xC4,0x20,-1,0xC6,0x0F,-1,0xD0,0xA4,0xA1,-1,0x21,-1,0xE0,0x00,0x19,0x1E,0x0A,0x09,0x15,0x3D,0x44,0x51,0x12,0x03,0x00,0x3F,0x3F,-1,0xE1,0x00,0x18,0x1E,0x0A,0x09,0x25,0x3F,0x43,0x52,0x33,0x03,0x00,0x3F,0x3F,-1,0x29,-3
Change 2 to 6 will fix this
20 Playing with this number will darken the colors " but not fix the problem "
0 to lighten the colors " but not fix the problem "
Maybe the information is not useful but I just want to share it.I tweaked the best I could to get a decent image, my friend and I are trying to go over all options in the datasheet to see if we can fix the contrast which seems to be the issue with the colors. The brightness seems good in my setup and I removed commands that don't seem necessary, feel free to try my settings on your setup and oh if you need to do a mirror the right way change 0x36,0x00 to either 0x36,0xE0, or 0x36,0x60.Code: Select all
options fbtft_device custom name=fb_st7789v speed=81000000 rotate=270 fps=60 buswidth=8 gpios=reset:25,dc:24 modprobe flexfb setaddrwin=0 width=240 height=320 init=-1,0x11,-2,120,-1,0x36,0x00,-1,0x3A,0x05,-1,0xB2,0x08,0x08,0x00,0x33,0x33,-1,0xB7,0x35,-1,0xBB,0x1A,-1,0xC2,0x01,-1,0xC3,0x3F,-1,0xC4,0x26,-1,0xC6,0x0E,-1,0xD0,0xA4,0xA1,-1,0x21,-1,0xE0,0x00,0x19,0x1E,0x0A,0x09,0x15,0x3D,0x44,0x51,0x12,0x03,0x00,0x3F,0x3F,-1,0xE1,0x00,0x18,0x1E,0x0A,0x09,0x25,0x3F,0x43,0x52,0x33,0x03,0x00,0x3F,0x3F,-1,0x29,-3
You and your friend have done a great work
Thank you I really appreciate your help!