Library ILI9481 320*480 3.5

Working libraries, libraries being ported and related hardware
fpiSTM
Posts: 251
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: Library ILI9481 320*480 3.5

Post by fpiSTM » Tue Oct 03, 2017 3:52 pm

Should be BSSR not BSSRH, I think.

stevestrong
Posts: 1840
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Library ILI9481 320*480 3.5

Post by stevestrong » Tue Oct 03, 2017 5:06 pm

I am just about reworking the 16 bit parallel part, I'll let you know when is done.
Currently getting some strange linker error, hope I can solve the issue today.

User avatar
Vnk8
Posts: 12
Joined: Wed Sep 27, 2017 4:57 pm

Re: Library ILI9481 320*480 3.5

Post by Vnk8 » Tue Oct 03, 2017 6:25 pm

OK!!!
VLADIMIR

stevestrong
Posts: 1840
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Library ILI9481 320*480 3.5

Post by stevestrong » Tue Oct 03, 2017 6:52 pm

Just finished to update my repo, please check it out.

Notes:
- reading of the ID is not implemented, so you have to set the identifier to a fixed value (0x9341 or 0x9328).
- for F103 I defined GPIOB (bits0..15) as data port, because GPIOA has some reserved pins for USB which I think is essential to keep it work.
The problematic pin is only PB2 which is not lead to board pins, but only to BOOT1 jumper (middle pin).
In order to use this pin you have to shortcut R4 on the back side of the board which is connected between the F103 chip and the BOOT1 jumper.
This resistor is 100Kohm so that the PB2 output will not work unless you solder a bridge over this resistor (shortcut).
- the control pins must all be mapped to the same GPIO, my default is GPIOA, but you could also use GPIOC (PC13..15).
- color565() is now (set back as) member of the Adafruit_TFTLCD_16bit_STM32 class. The graphicstest has been updated accordingly.
This means that you have to use now "tft.color565()" instead of "color565()".

Building is error/warning-less, but I did not test the functionality, because it would cost me a lot of time to re-wire the LCD onto blue pill.
So I cannot give any guarantee for that.

Please try it and let me know if it works.

User avatar
Vnk8
Posts: 12
Joined: Wed Sep 27, 2017 4:57 pm

Re: Library ILI9481 320*480 3.5

Post by Vnk8 » Wed Oct 04, 2017 3:43 pm

Did what you said. The program now compiles, but the screen remains white after it is loaded.
Use:
B0-B15 (B2 redone)
#define Tft_wr_pin PA1
#define Tft_rs_pin PA2
#define Tft_cs_pin PA3
#define Tft_rst Pin PC15
VLADIMIR

stevestrong
Posts: 1840
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Library ILI9481 320*480 3.5

Post by stevestrong » Wed Oct 04, 2017 4:05 pm

Which identifier value did you set in your sketch?

User avatar
Vnk8
Posts: 12
Joined: Wed Sep 27, 2017 4:57 pm

Re: Library ILI9481 320*480 3.5

Post by Vnk8 » Wed Oct 04, 2017 4:23 pm

The sketch from your library: graphicstest
VLADIMIR

stevestrong
Posts: 1840
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Library ILI9481 320*480 3.5

Post by stevestrong » Thu Oct 05, 2017 8:23 am

As a first test, I would suggest you to write a short test program to toggle all data and control pins, like this:

Code: Select all

pinMode(PB0, OUTPUT);
digitalWrite(PB0, LOW);
delay(500);
digitalWrite(PB0, HIGH);
delay(500);
ad then measure the output on PB0 to see it it is really toggling.
Do this for all data pins (PB0..15) and control pins (PA0..4, PC15).

User avatar
Vnk8
Posts: 12
Joined: Wed Sep 27, 2017 4:57 pm

Re: Library ILI9481 320*480 3.5

Post by Vnk8 » Thu Oct 05, 2017 3:04 pm

I want to state all the apologies, especially STEVESTRONG which was taking part in the solution of my question, but there were Force majeure circumstances which postpone further discussions of this subject. At the next connection the display module has been successfully burned. Wine completely mine. The new display is already ordered on AliExpress. So I don't say goodbye!!!
VLADIMIR

stevestrong
Posts: 1840
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Library ILI9481 320*480 3.5

Post by stevestrong » Fri Oct 06, 2017 9:33 am

No worries.
I also burned one of my ILI9328 display, although only soldered some of the board pins. It seems that they are quite sensitive to heat.

Post Reply