# Free pins. TFT screen

**URL:** <https://forum.arduino.cc/t/free-pins-tft-screen/1406250>\
**Category:** General Guidance\
**Created:** [September 14, 2025, 2:45pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250 "2025-09-14T14:45:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kvyaznikov](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kvyaznikov/32/1126543_2.png) [@kvyaznikov](https://forum.arduino.cc/u/kvyaznikov)\
**Post date:** [September 14, 2025, 2:45pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/1 "2025-09-14T14:45:36Z")

</div>

I have TFT screen mounted on top of Arduino UNO:

[3.5 Inch TFT LCD Touch Screen Display Module 3.5" 480\*320 LCD for Arduino UNO Mega2560 Mega 2560 - AliExpress 502](https://www.aliexpress.com/item/1005009044068496.html?spm=a2g0o.order_list.order_list_main.10.5ad61802f4fTMq)

It reports TFT ID = 0x6814.  
I found mixed information so far.

Please advise which pins I can use for SoftwareSerial communication for two 485 cards?

At the moment I use 0,1 forTx,Rx for one board, but I need two boards.  
Thanks!

---

<div class="post-metadata">

**Author:** ![UKHeliBob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ukhelibob/32/215663_2.png) [@UKHeliBob](https://forum.arduino.cc/u/UKHeliBob)\
**Post date:** [September 14, 2025, 2:51pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/2 "2025-09-14T14:51:03Z")

</div>

Are you asking which pins are not used by the screen ?

Which library are you using for the screen ?

---

<div class="post-metadata">

**Author:** ![van\_der\_decken](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/van_der_decken/32/1006976_2.png) [@van\_der\_decken](https://forum.arduino.cc/u/van_der_decken)\
**Post date:** [September 14, 2025, 3:12pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/3 "2025-09-14T15:12:52Z")

</div>

> [@kvyaznikov](#):
>
> I found mixed information so far.

And what, exactly, "mixed information" you have found so far?

---

<div class="post-metadata">

**Author:** ![david\_2018](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/david_2018/32/1013044_2.png) [@david\_2018](https://forum.arduino.cc/u/david_2018)\
**Post date:** [September 14, 2025, 3:38pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/4 "2025-09-14T15:38:19Z")

</div>

Do you have any idea what the F\_CS pin connected to A5 is used for? Most display boards of this type do not have any labeling for the A5 pin, and it is unused.

The LCD\_RST pin can be disconnected from A4 and instead connected to RST of the Arduino. I've done this so that the I2C bus can be used.

Easiest solution is to use an Arduino Mega, display will still fit, you have plenty of memory, and hardware serial ports instead of SoftwareSerial.

> [@kvyaznikov](#):
>
> Please advise which pins I can use for SoftwareSerial communication for two 485 cards?
> 
> At the moment I use 0,1 forTx,Rx for one board, but I need two boards.

Please don't tell me you are using SoftwareSerial on pins 0 & 1.

\< edit \>  
If you do not need the SD card, then you could disconnect all the pins that are labeled SD\_xxx.

---

<div class="post-metadata">

**Author:** ![Railroader](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/railroader/32/274550_2.png) [@Railroader](https://forum.arduino.cc/u/Railroader)\
**Post date:** [September 14, 2025, 4:41pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/5 "2025-09-14T16:41:32Z")

</div>

> [@kvyaznikov](#):
>
> At the moment I use 0,1 forTx,Rx

That’s a really bad choice. Uploading code will not work and debug prints via Serial don’t work.

---

<div class="post-metadata">

**Author:** ![kvyaznikov](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kvyaznikov/32/1126543_2.png) [@kvyaznikov](https://forum.arduino.cc/u/kvyaznikov)\
**Post date:** [September 15, 2025, 12:00pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/6 "2025-09-15T12:00:19Z")

</div>

Library used for TFT is:

#include "Adafruit\_GFX.h" // Core graphics library  
#include \<MCUFRIEND\_kbv.h\> // Hardware-specific library for MCUFRIEND shields

Maybe modified accordingly as I use UNO R4.

> > Easiest solution is to use an Arduino Mega, display will still fit, you have plenty of memory, and hardware serial ports instead of SoftwareSerial.  
> > Yes, I tend to start using MEGA. Thanks!

> > Do you have any idea what the F\_CS pin connected to A5 is used for? Most display boards of this type do not have any labeling for the A5 pin, and it is unused.  
> > The LCD\_RST pin can be disconnected from A4 and instead connected to RST of the Arduino. I've done this so that the I2C bus can be used.  
> > Please advise where to read how to do this.

> > > If you do not need the SD card, then you could disconnect all the pins that are labeled SD\_xxx.  
> > > Thanks.

I found by experiement, that I can use **A5** to toggle relay and pin **12** for input testing. Not sure if I did this correct, but it works. Maybe it is not good idea.

From answers as I see, no free pins in reality.

---

<div class="post-metadata">

**Author:** ![PaulRB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulrb/32/216330_2.png) [@PaulRB](https://forum.arduino.cc/u/PaulRB)\
**Post date:** [September 15, 2025, 12:09pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/7 "2025-09-15T12:09:17Z")

</div>

> [@kvyaznikov](#):
>
> I use UNO R4.

It's important to be accurate about what model of Arduino you are using in your first post. If you say "Uno" everyone will assume you mean R3 (not R4, which is a new model).

---

<div class="post-metadata">

**Author:** ![kvyaznikov](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kvyaznikov/32/1126543_2.png) [@kvyaznikov](https://forum.arduino.cc/u/kvyaznikov)\
**Post date:** [September 15, 2025, 12:12pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/8 "2025-09-15T12:12:13Z")

</div>

It works prefectly. I use Serial for debug output.  
I use UNO R4 - maybe this is the reason.

---

<div class="post-metadata">

**Author:** ![PaulRB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulrb/32/216330_2.png) [@PaulRB](https://forum.arduino.cc/u/PaulRB)\
**Post date:** [September 15, 2025, 12:18pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/9 "2025-09-15T12:18:58Z")

</div>

On Uno R4, pins 0 and 1 are the Serial1 hardware serial port. Don't use Software Serial for those pins!

Question: why do you need 2x RS485 boards? RS485 is a serial bus, so it should not be necessary to use 2 of them.

---

<div class="post-metadata">

**Author:** ![UKHeliBob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ukhelibob/32/215663_2.png) [@UKHeliBob](https://forum.arduino.cc/u/UKHeliBob)\
**Post date:** [September 15, 2025, 12:20pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/10 "2025-09-15T12:20:50Z")

</div>

> [@kvyaznikov](#):
>
> Please advise which pins I can use for SoftwareSerial communication for two 485 cards?

> [@kvyaznikov](#):
>
> I use UNO R4 - maybe this is the reason.

On the Uno R4, the Serial interface goes to the USB port and does not use pins 0 and 1. Those pins are used by the Serial1 interface, which is what I presume you are using, or are you ?

I am not sure whether you can use SoftwareSerial with the Uno R4 but it would be helpful if you posted your full sketch, using code tags when you do

---

<div class="post-metadata">

**Author:** ![kvyaznikov](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kvyaznikov/32/1126543_2.png) [@kvyaznikov](https://forum.arduino.cc/u/kvyaznikov)\
**Post date:** [September 15, 2025, 12:22pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/11 "2025-09-15T12:22:32Z")

</div>

I have TFT screen additionally, relay, power indicator pin and not sure what other pins I can use for software Tx/Rx.

I need two 485 cards, as I want to connect to two let's say sensors. I need info from both of them to make decision.

---

<div class="post-metadata">

**Author:** ![kvyaznikov](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kvyaznikov/32/1126543_2.png) [@kvyaznikov](https://forum.arduino.cc/u/kvyaznikov)\
**Post date:** [September 15, 2025, 12:24pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/12 "2025-09-15T12:24:54Z")

</div>

Yes, I use pins 0,1 for Tx/Rx.

Softweare serial works 5 mins for me, then hangs. Only reset helps.

Code is posted both for Software and Hardware. Software works shaky, Hardware works perfectly fine.

---

<div class="post-metadata">

**Author:** ![UKHeliBob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ukhelibob/32/215663_2.png) [@UKHeliBob](https://forum.arduino.cc/u/UKHeliBob)\
**Post date:** [September 15, 2025, 12:28pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/13 "2025-09-15T12:28:45Z")

</div>

As I said, pins 0 and 1 are used by the hardware **Serial1** interface on the Uno R4. The pins should not be used with SoftwareSerial and there is no need to do so.

Change your sketch to use the Serial1 interface with the device connected to pins 0 and 1. That should work and you will only need a single instance of SoftwareSerial if it works with the R4

---

<div class="post-metadata">

**Author:** ![PaulRB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulrb/32/216330_2.png) [@PaulRB](https://forum.arduino.cc/u/PaulRB)\
**Post date:** [September 15, 2025, 12:32pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/14 "2025-09-15T12:32:22Z")

</div>

> [@kvyaznikov](#):
>
> I want to connect to two let's say sensors

Do these sensors have the same address on the bus and it is not possible to change the address of one of them?

---

<div class="post-metadata">

**Author:** ![kvyaznikov](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kvyaznikov/32/1126543_2.png) [@kvyaznikov](https://forum.arduino.cc/u/kvyaznikov)\
**Post date:** [September 15, 2025, 12:34pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/15 "2025-09-15T12:34:17Z")

</div>

Two different addresses. I can distinguish response from every of them. I guess I can connect to two sensors in parallel.

---

<div class="post-metadata">

**Author:** ![PaulRB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulrb/32/216330_2.png) [@PaulRB](https://forum.arduino.cc/u/PaulRB)\
**Post date:** [September 15, 2025, 12:41pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/16 "2025-09-15T12:41:53Z")

</div>

So do you need 2x RS485 adapters for the Uno?

---

<div class="post-metadata">

**Author:** ![kvyaznikov](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kvyaznikov/32/1126543_2.png) [@kvyaznikov](https://forum.arduino.cc/u/kvyaznikov)\
**Post date:** [September 15, 2025, 1:32pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/17 "2025-09-15T13:32:46Z")

</div>

After discussion looks like not. Two sensors can sit on one bus and I can distiguish data from both of them

---

<div class="post-metadata">

**Author:** ![kvyaznikov](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kvyaznikov/32/1126543_2.png) [@kvyaznikov](https://forum.arduino.cc/u/kvyaznikov)\
**Post date:** [September 15, 2025, 1:36pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/18 "2025-09-15T13:36:05Z")

</div>

So question about free TFT pins for screen which I have boild down to:

It is for UNO R4 and 485 hardware serial communication.

Can use **A5** to toggle relay and pin **12**?

---

<div class="post-metadata">

**Author:** ![PaulRB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulrb/32/216330_2.png) [@PaulRB](https://forum.arduino.cc/u/PaulRB)\
**Post date:** [September 15, 2025, 1:47pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/19 "2025-09-15T13:47:39Z")

</div>

I guess we would need to see the internal schematic for your TFT shield to answer that. Can you post a link?

---

<div class="post-metadata">

**Author:** ![PaulRB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulrb/32/216330_2.png) [@PaulRB](https://forum.arduino.cc/u/PaulRB)\
**Post date:** [September 15, 2025, 1:54pm UTC](https://forum.arduino.cc/t/free-pins-tft-screen/1406250/20 "2025-09-15T13:54:37Z")

</div>

I saw this pinout on the page you linked to:

 ![S73b9e041226e45b48fb8669d7f4afd98T.jpg_640x640q90](https://europe1.discourse-cdn.com/arduino/original/4X/e/8/9/e89cb2883f3b95ac5d302c4268cb4dd3e41a20fa.jpeg)  
Maybe you can figure out from this?

 ![ABX00080-pinout](https://europe1.discourse-cdn.com/arduino/original/4X/9/6/1/961914b0d5665ad45bc74503c0114cb13da13c06.png)

It looks like D0, D1 are not used.

It may be that D14, D15 are not used, but maybe they are internally connected to A4 & A5 on R4 like they are on R3.

It may be that D10 to D13 are not used if the SD card is not required, however, the 5V\<--\>3.3V level shifter chips that you can see on the reverse of the TFT shield may interfere with those pins.

[Next page](https://forum.arduino.cc/t/free-pins-tft-screen/1406250.md?page=2)
