Closed HackingM closed 10 years ago
That's a new one. First try 'hy28a' to see if that works. fb_ili9320 and fb_ili9325 are equal except for the default init sequences.
I believe register 03h controls this behaviour. In fb_ili9325 this register is hardcoded, so flexfb has to be used to change it. Relevant function: set_var(): https://github.com/notro/fbtft/blob/master/fb_ili9325.c#L204
Read 8.2.6. Entry Mode (R03h) in the datasheet to find values to test with: ftp://imall.iteadstudio.com/IM120419009_ITDB02_2.8/DS_ILI9325DS.pdf
Here the value is: -1,0x0003,0x1030
sudo modprobe flexfb chip=ili9325
sudo modprobe fbtft_device name=flexfb mode=3 startbyte=0x70 rotate=0 gpios=reset:25,led:18 init=-1,0x00e7,0x0010,-1,0x0000,0x0001,-1,0x0001,0x0100,-1,0x0002,0x0700,-1,0x0003,0x1030,-1,0x0004,0x0000,-1,0x0008,0x0207,-1,0x0009,0x0000,-1,0x000a,0x0000,-1,0x000c,0x0001,-1,0x000d,0x0000,-1,0x000f,0x0000,-1,0x0010,0x0000,-1,0x0011,0x0007,-1,0x0012,0x0000,-1,0x0013,0x0000,-2,50,-1,0x0010,0x1590,-1,0x0011,0x0227,-2,50,-1,0x0012,0x009c,-2,50,-1,0x0013,0x1900,-1,0x0029,0x0023,-1,0x002b,0x000e,-2,50,-1,0x0020,0x0000,-1,0x0021,0x0000,-2,50,-1,0x0050,0x0000,-1,0x0051,0x00ef,-1,0x0052,0x0000,-1,0x0053,0x013f,-1,0x0060,0xa700,-1,0x0061,0x0001,-1,0x006a,0x0000,-1,0x0080,0x0000,-1,0x0081,0x0000,-1,0x0082,0x0000,-1,0x0083,0x0000,-1,0x0084,0x0000,-1,0x0085,0x0000,-1,0x0090,0x0010,-1,0x0092,0x0000,-1,0x0093,0x0003,-1,0x0095,0x0110,-1,0x0097,0x0000,-1,0x0098,0x0000,-1,0x0007,0x0133,-1,0x0020,0x0000,-1,0x0021,0x0000,-2,100,-3
I don't have a HY28B, only a HY28A. The above command gives me a mirrored image on HY28A.
Thank you so much - I didn't realise how similar they were or I would have tried it before!
modprobe fbtft_device name=hy28a rotate=270
produces a perfectly functioning display, the right way up and with no mirroring.
Thanks again. Great work BTW.
As the subject says I have an HY28B device working perfectly apart from the fact that the display is mirrored vertically (so everything is written upside down and the most recent console lines are at the top).
Rotating the display works as expected but everything remains upside down.
Any ideas? Any more information I can provide?
Thanks.