Arduino Tutorial: 2.8" TFT LCD Touch Screen ILI9325 with Arduino Uno and Mega from Banggood.com

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 พ.ย. 2016
  • This is a 2.8" Arduino Touch Screen Tutorial with the ILI9325 driver. Is this Arduino touch display a good option for your Arduino projects? Keep watching in order to find out!
    Hey guys, I am Nick and welcome to educ8s.tv a channel that is all about DIY electronics projects with Arduino, Raspberry Pi, ESP8266 and other popular boards. Today we are going to take a look at this 2.8" touch screen designed for Arduino. As you can see, I have loaded a demo program that displays a button on the screen. When I press the button with my finger, the program displays a message. As demonstrated the touch screen is working fine! Finally we can start building projects with a touch screen which are much more interesting and easier to use.
    💻 Code & Parts: educ8s.tv/arduino-touch-screen...
    Want to learn to code?
    👨‍💻 Check my new TH-cam channel: bit.ly/3tku2n0
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 209

  • @tonyblewitt6159
    @tonyblewitt6159 6 ปีที่แล้ว +3

    This was a great help in getting the 2.8 TFT touchscreen to work (the one from Bangood )! I did however struggle for some time with the dreaded white screen . The driver for the device, I just received from them. Needs to be ILI9341. which is not on their information .I initial tried for a good while with the ILI9325 driver which sort of half works half works on the above tutorial ......so if you are struggling with one of these Bangood displays try entering 9341

  • @alan.millington
    @alan.millington 7 ปีที่แล้ว +1

    I'd love to see a simple touchscreen controller for the little robot you built a few weeks ago. You could send commands via bluetooth and show the direction arrows on screen, could be very neat :)

  • @julioverne3825
    @julioverne3825 6 ปีที่แล้ว +1

    Hello, Nick. This is my first comment, although I see all your videos.
    I think in the code there's an error in the use of the "map" function. The correct lines should be:
    p.x = map(p.x, TS_MINX, TS_MAXX, 0, 320);
    p.y = map(p.y, TS_MINY, TS_MAXY, 0, 240);
    This is because in the map function you have to put first the low value, and then, the high value.
    Thank you for all your great work!

  • @edwatters6377
    @edwatters6377 7 ปีที่แล้ว

    Nick...I was having a problem with the display I purchased on eBay running your code. There are different drivers for 2,8" TFTs ....they may look the same but are not. For me I had to change the "identifier". In my case it was 0x8230. After that every thing worked great. Your videos are great... keep up the good work.

  • @JoBest94
    @JoBest94 6 ปีที่แล้ว +2

    Great video!, helped a lot with my project, I really like the part where you show ordinally what part of codes do what on the display

  • @BananaScience
    @BananaScience 5 ปีที่แล้ว

    Extremely helpful tutorial! Thanks!

  • @youpattube1
    @youpattube1 7 ปีที่แล้ว

    hello -
    another excellent video tutorial. you asked what kind of projects we want, well I would like you to take this one to the next step : make a simple arduino touch screen calculator.

  • @amlansarkar8837
    @amlansarkar8837 7 ปีที่แล้ว +26

    Can you make a video on how to use the SD card slot in the display for displaying pictures and stuff!

  • @AakashSom
    @AakashSom 7 ปีที่แล้ว

    I am looking forward to some possible projects with this!!! I really can't figure out a proper project I can make with it!

  • @cad3175
    @cad3175 7 ปีที่แล้ว +1

    ..a 3-option menu with 2-option sub-menus would be useful for many projects, like on a 3D printer, just a suggestion, thanks

  • @yadavraveendra6922
    @yadavraveendra6922 6 ปีที่แล้ว

    Thank You for the tutorials.

  • @parasbhanot
    @parasbhanot 7 ปีที่แล้ว

    you can build Line chart or Bar-graph according to sensor values .

  • @antoniobruno3670
    @antoniobruno3670 7 ปีที่แล้ว

    Tks for sharing your knowledge !
    regards, Bruno.

  • @adamfox6529
    @adamfox6529 7 ปีที่แล้ว

    Dear Nick I downloaded your modified Adafruit library and everything works fine, thank you !! I Why doesn't the standard (non-modified) Adafruit TFT libray work with this LCD ?

  • @Richie_
    @Richie_ 2 ปีที่แล้ว

    Subscribed. I need to learn how to use these screens.

  • @hmdmddh
    @hmdmddh 6 ปีที่แล้ว

    Hello thanks for the explaination, can we use this Touch screen and an arduino uno to build an oscilloscope?

  • @ForeverMods
    @ForeverMods 7 ปีที่แล้ว

    Is it just me or do you also find that he goes too fast ? Like why modified library ? However the links are very detailed and you should really check them out. I find this channel to be awesome.

  • @eduardoschlichta431
    @eduardoschlichta431 7 ปีที่แล้ว

    will be cool put a image on display and using the touch screen apply you reduce the zoom

  • @guidovlaere
    @guidovlaere 7 ปีที่แล้ว

    Thanks a lot! This is a really good tutorial...! It is really very helpful!
    It would be nice to make a screen with several buttons what you can use for example as a light switch. Maybe it is an idea for next tutorials?
    I will check all other tutorials from you!
    Again, thank you very much!!!

  • @rajainayat
    @rajainayat 3 ปีที่แล้ว

    Hello Mik
    Nice simple tutorial. I want you to make program like Sine wave graph or other graphs. Thanks

  • @VK2AHB
    @VK2AHB 3 ปีที่แล้ว

    Hi Nick, I have two questions: 1) I have the blue 2.8" and a red 2.8". The blue one works fine, the red one is mirror reversed. How can I turn it right way round? Second question: With most of the pins taken up by the display, how can I add sensors like DS18B20 or DHT22?

  • @petera_sha
    @petera_sha 2 ปีที่แล้ว

    I would be interested to see this display working as a monitor through Hdmi or as second display for laptops or smartphones. Cheers!

  • @brunovarotta
    @brunovarotta 6 ปีที่แล้ว +1

    Could you tell me if this will work on a 3.5'' TFT touch LCD shield. I can see it uses the same pins

  • @ProjectGuns
    @ProjectGuns 7 ปีที่แล้ว

    Hi Nick,
    great video. how about a project with this display making a .bMP photo display that will advance the photos from the SD card using the touch screen.
    Regards,
    Stan

  • @Jayesh_Gohil
    @Jayesh_Gohil 6 ปีที่แล้ว

    good job keep going! sd card slot using ?

  • @dilsonferreirasouza5814
    @dilsonferreirasouza5814 7 ปีที่แล้ว

    Do you have some example with more pages and botton?
    I'd like to learn more about it.

  • @augustoduccio
    @augustoduccio 7 ปีที่แล้ว

    really very interesting
    I am using this display with numbers but i am not able to cancel the previous number
    so in fews steps they are impossible to read.
    suggestions ?

  • @diegorincon811
    @diegorincon811 7 ปีที่แล้ว

    Great example, thank you. I was thinking to implement this display to show daily exchange rate between USD and other currencies. Is there a way to make arduino download daily exchange rates from internet o from a file on the web and display it on the TFT? (with a wifi or ethernet shield)
    Again, thank you

  • @fcolpz9071
    @fcolpz9071 6 ปีที่แล้ว

    Hey!! I have the same touchscreen, I have seen the others tutorials with nextion, its possible to use nextion with this model of touchscreen ??

  • @PDGAF
    @PDGAF 7 ปีที่แล้ว

    You need to do a tutorial on the MPU6050 ran off the Arduino Uno.
    P

  • @rosazuniga8012
    @rosazuniga8012 7 ปีที่แล้ว

    hello, I want to make a matrix of a few buttons sort of like dial pad.
    I saw you created one button how to do more than one, ( on/off , and numbers ) like to control LEDs, and stuff.

  • @acmgj8536
    @acmgj8536 7 ปีที่แล้ว

    Make FM radio and watch with it I wud like to see and make also if u provide complete guide for project

  • @pauldusa
    @pauldusa 7 ปีที่แล้ว

    Hi, simple is shields, u should do a 2.8 spi video

  • @chernoblyat1901
    @chernoblyat1901 2 ปีที่แล้ว

    Question, I've seen some TH-camrs use the TFT Adapter Board for this project, is it a must to use the TFT Adapter Board?

  • @peterwebster3076
    @peterwebster3076 7 ปีที่แล้ว

    hey nother great video I want to use this project to create a digital photo frame but unsure how to do this ie changing the code if you know what I mean any help would be great cheers pete uk

  • @acmgj8536
    @acmgj8536 7 ปีที่แล้ว

    nice video sir but speech is very quick ... amazing video ... i m new and want to make projects by using arduino .. uno ..

  • @xTheTechLegendx
    @xTheTechLegendx 7 ปีที่แล้ว

    Hi , great job , keep it up :) .
    I have a question since i am new with Arduino product , is it possible to control RGB leds through the LCD touch screen ?

    • @Educ8s
      @Educ8s  7 ปีที่แล้ว

      Yes of course

    • @xTheTechLegendx
      @xTheTechLegendx 7 ปีที่แล้ว

      Oh that's nice , can you create a simple example for that with 3.5 LCD and RGB strip ?

  • @chronobot2001
    @chronobot2001 4 ปีที่แล้ว

    Can you still use devices with the SPI or I2C interfaces or does the screen prevent it?

  • @Satyendrakumar-sm3np
    @Satyendrakumar-sm3np 6 ปีที่แล้ว

    Can you make video on how to take input from touch screen and store it in file

  • @andywalker8540
    @andywalker8540 7 ปีที่แล้ว +1

    Great video) Maybe you can build a simple game for arduino for the next saturday?

    • @Educ8s
      @Educ8s  7 ปีที่แล้ว +1

      Yes, I have already thought of a game that we can build with this display!

    • @andywalker8540
      @andywalker8540 7 ปีที่แล้ว

      that's great)

  • @ci3jk4
    @ci3jk4 7 ปีที่แล้ว

    Hi,
    Could you please make a tutorial on how to make a simple menu with pages?
    I did figure out all the rest but I'm stuck on how to make the screen go to next page when (one of 3) button is pressed, to show different data.
    I know that the code behind this is quite simple, but cant figure it out...
    Just like jimbob dooley mentioned, a month ago :)

  • @riccardofinotti1019
    @riccardofinotti1019 6 ปีที่แล้ว

    Hi, would you know how to connect this shield to a Ramps 1.4 shield? I would like to use the touchscreen in my 3d printer

  • @chemicalvamp
    @chemicalvamp 6 ปีที่แล้ว

    Create an arduino uno serial monitor, so you can view Serial.print("Hello World!"); from your projects without using a computer.

  • @BGLENN-dp4tx
    @BGLENN-dp4tx 4 ปีที่แล้ว

    Where to find out about using the integrated SD card? Thanks.

  • @mbaksa
    @mbaksa 7 ปีที่แล้ว +1

    How well does the touchscreen work? I see that it is a resistive type, which I hoped are the thing of past, since capacitive touchscreens are today's standard, and they work great.

    • @Educ8s
      @Educ8s  7 ปีที่แล้ว +1

      From my experience, it works pretty well. I didn't faced any problems at all!

    • @MarcRitzMD
      @MarcRitzMD 7 ปีที่แล้ว

      Resistive is not all bad. You get higher sensor resolution with them and you can use any tip on them. That is why using a fine tip pen can be used very accurately. The Nintento 3DS was thus able to use these cheap plastic pens

    • @legoscratch
      @legoscratch 7 ปีที่แล้ว

      mbaksa I thought the same but was very impressed! The screen is very responsive and you can change the amount of pressure detected

    • @ForeverMods
      @ForeverMods 7 ปีที่แล้ว

      For Arduino I find that resistive touch is better cause there is less tendency to hit other points on the display.

  • @asmaklad
    @asmaklad 7 ปีที่แล้ว

    Great Video . you could make a clock alarm .

    • @Educ8s
      @Educ8s  7 ปีที่แล้ว

      Hello Ahmed! Yes, that's a very good idea!

  • @c0d3punk
    @c0d3punk 7 ปีที่แล้ว

    Πως φαίνεται οτι είσαι Έλληνας μωρέ αδερφάκι μου! :) Very good job and nice channel! Have you got also created android apps?

  • @adsads7054
    @adsads7054 3 ปีที่แล้ว

    please make with displacement tranducer and pressure tranducer and record the peak

  • @amitrdevece
    @amitrdevece 6 ปีที่แล้ว +2

    can you make an oscilloscope with this display and uno ?
    what will be the maximum bandwidth and frequency range for this oscilloscope?
    will it be more useful than DSO138 mini oscilloscope ?

  • @RTOHIO
    @RTOHIO 3 ปีที่แล้ว

    I cannot get the example to compile, it says A2 is not defined in this scope. The comment in line says must be analog use An notation. I can find no info on how to use that notation in Arduino sketches. Github says if you are using the shield use TFTpaint_shield.ino but I cannot find that ino file either. Since it wont compile I cannot calibrate the screen. Any ideas? Been a subscriber for a while and like your approach.

  • @josephkidd3622
    @josephkidd3622 5 ปีที่แล้ว

    How many pins are left when used with the mega?

  • @florisbollen3770
    @florisbollen3770 6 ปีที่แล้ว +2

    Hi, I've been looking all over the internet for some libraries that work with my arduino uno, and my touch screen shield, and you're the first that gets something on the screen, but I've got strange coloured lines all over the display, and a lot of snow in the background, how do I fix this?

    • @pass6123
      @pass6123 6 ปีที่แล้ว

      Hi, I also have the same problem. I would like to know if you could fin a solution.

  • @brianmoore5454
    @brianmoore5454 6 ปีที่แล้ว

    Nick...I am using the same 2.8" TFT LCD Arduino Shield as yourself in the video. However, I have tried downloading every combinations of Sketches and none of them work. I have followed most of your other videos and they nearly all work straight away but this TFT Shield is bugging me as I have a project waiting for a working screen menu. Any help would be most appreciated

  • @cad3175
    @cad3175 7 ปีที่แล้ว

    Nice thanks

  • @fermarioav6473
    @fermarioav6473 5 ปีที่แล้ว

    Hello, I want to manufacture my own electric scooter, for this I want to add an LCD panel adafruit, I want to control the engine for acceleration and the three modes, Eco, Normal, and fast, for this I do not want it to be a touch screen but a Joistick, I want that show battery level, and acceleration, what would you recommend, do you know a similar project? Thank you

  • @killboysenior9763
    @killboysenior9763 7 ปีที่แล้ว

    how long is the ribbon cable attaching the lcd to the module

  • @nsahaassam
    @nsahaassam 4 ปีที่แล้ว

    Sir Can we use the display in FPV Camere

  • @vishalprajapati823
    @vishalprajapati823 7 ปีที่แล้ว

    i have 2.4 tft screen with 9335 written on back i had tried same instruction but it just ended giving a white screen .. what chnges should i do

  • @nihadabbikar5788
    @nihadabbikar5788 ปีที่แล้ว

    Can you do screen mirroring from a mobile phone using Arduino??

  • @sirazulislamsiraz7631
    @sirazulislamsiraz7631 7 ปีที่แล้ว

    hi there... I am connecting ILI9341 display with ardunio uno. i am able to get image. but I can see this from angle. the display seems very bright. what can i do to solve this problem? thanks

  • @legoscratch
    @legoscratch 7 ปีที่แล้ว

    What are the pin holes on the right for? They aren't marked

  • @mog99lie
    @mog99lie 7 ปีที่แล้ว

    Hello, thank you for a supper project. I have also followed and built your robot project with great results. But I have a problem! My display looks 100% like yours, even down to the printing on the PCB. To get the code working I had to change the tft.begin(0x9325); to tft.begin(0x9341); I saw the 9341 on another simple project that worked. So now I got the first screen with button. The button didn't work! But after some tests when I touched "Hello" it worked... I went through the calabration entering very small differances in the X an Y but still the button only worked on the word hello!!! I tried touching the outer limits of the touch box and entering the values noted on the serial monitor but still only worked when I touched "Hello". Next I tried to change the values of the "if(p.x>60 && p.x180 && p.y50 && p.x10 && p.y

  • @nitlendghar
    @nitlendghar 5 ปีที่แล้ว

    Helloo sir, im trying to learn touch screen photo frame based on arduino forward reverse pause. As like audio video player. Pls

  • @geoffreyschuchardt5350
    @geoffreyschuchardt5350 ปีที่แล้ว

    So freaking cool!!

  • @valerioguagnelliscanzani643
    @valerioguagnelliscanzani643 5 ปีที่แล้ว

    Is it possible to use SD card as data logger?

  • @goned216
    @goned216 5 ปีที่แล้ว

    Can you teach us how to make a simple OS with clock. calculator and that stuff with just An arduino R3, Ethernet Shield and this LCD TFT Touchscreen Please? Very Very Please?

  • @mitropoulosilias
    @mitropoulosilias 7 ปีที่แล้ว

    that screen as a clock digital numbers with ds3231RTC with multi alarm function, sounds or songs on alarm,
    Why it does not work with due?

  • @jeanfrancoishoussou6293
    @jeanfrancoishoussou6293 6 ปีที่แล้ว

    hello nick.Nice to meet you. sorry for my bad English .I am trying to resolve my white screen problem. I have try all library whithout solution. now i think that it's about my register and i upload LCD_ID redreg library to show a different values of my registers and i found this:Unknow LCD driver C0C0. i am using a 2.4 TFT SPI 240x320 whith arduino uno. I need help.

  • @360_tours
    @360_tours 5 ปีที่แล้ว

    My screen seems to be shifted down. When I change the origin and read the data point from the serial is doesn't change. Do you know of any solutions?

  • @obALlhashmi
    @obALlhashmi 4 ปีที่แล้ว +5

    why does mine keep giving the error unable to complie for arduino uno/genuino?

  • @estudianteelectrico6728
    @estudianteelectrico6728 5 ปีที่แล้ว

    Hello Friend. great teaching content. Thank you for sharing your thoughts. Dude, I have some problems.
    The code generated by my TFT controller with the function:
    uint16_t ID = tft.readID () is 0x5408, but it does not spin when putting this code into the tft.begin (0x5408); But it rotates by putting tft.begin (0x9325);
    Another detail is that the texts have appeared mirrored, inverted, for example: youtube appears eduTuoy. Could you help me? Thank you.

  • @zeffofx
    @zeffofx 7 ปีที่แล้ว

    Hmm, I think it's a bit slow on loading images. Anyway, how about an e-mail reciever and sender with arduino + esp8266?

    • @Educ8s
      @Educ8s  7 ปีที่แล้ว

      Yes, loading images is slow. But don't forget we are using a 16Mhz Arduino Uno with 2K of RAM. Even loading an image with the amount of RAM available is a miracle! Yes, we try a project like the one you are proposing!

  • @AzharKhan-ek3ri
    @AzharKhan-ek3ri ปีที่แล้ว +1

    can we somehow use this display with an esp 32

  • @adlaneaitamrane2740
    @adlaneaitamrane2740 5 ปีที่แล้ว

    tftbmp isn't working with my arduino mega, does someone have a solution ? if i use the soft spi i have an error because this is a modified TFTLCD Library .
    Thanks

  • @abhi-rg4ky
    @abhi-rg4ky 7 ปีที่แล้ว

    sir can we play videos using digital pins ...... sir plzzzz help me with this ......

  • @64bittz93
    @64bittz93 6 ปีที่แล้ว

    does the screen use pin 13 of arduino uno?

  • @CristianoAlmeida
    @CristianoAlmeida 6 ปีที่แล้ว

    Unfortunately this LCD does not have its own editor program like nextion.

  • @mellee3436
    @mellee3436 2 ปีที่แล้ว

    Hi Nick. I recently purchased this board from Banggood and attached to a Uno purchased as well. The sketch compiles and uploads without trouble. The screen displays but the touch screen doesn't seem to work. The serial monitor displays Starting ... - but nothing more. Can you offer some advice please ? Arduiono IDE is 1.8.16. Regards, Mel

    • @mellee3436
      @mellee3436 2 ปีที่แล้ว

      Lines 22-26 of your code.

  • @martipaulet5413
    @martipaulet5413 5 ปีที่แล้ว

    you can make like a prototipe of an smartwatch

  • @deepsavani5785
    @deepsavani5785 7 ปีที่แล้ว

    can you help me make a speedometer display using tft and arduino??

  • @irfanaslam5859
    @irfanaslam5859 7 ปีที่แล้ว +1

    sir what displays do you prefer

    • @Educ8s
      @Educ8s  7 ปีที่แล้ว

      Hello! I have published an article about the best Arduino displays. You can check it here: educ8s.tv/tutorials/best-arduino-display/

  • @alejandrofernandez-bo3fy
    @alejandrofernandez-bo3fy 2 ปีที่แล้ว

    I would like to know how I make buttons with images. I mean, a button that is an image. I would also like to know how I make a slider

  • @thanasisathanasi4965
    @thanasisathanasi4965 5 ปีที่แล้ว

    Re file, me afto to papari mporeis na kaneis skip forward me kapia commands?

  • @yacovcohen3913
    @yacovcohen3913 5 ปีที่แล้ว

    How can we disable the display to save electricity ?

  • @zacpackman9186
    @zacpackman9186 6 ปีที่แล้ว

    i wonder if you could make it run doom ?

  • @rajeshthakur-zv5lo
    @rajeshthakur-zv5lo 5 ปีที่แล้ว

    sir , can you give the schematic to connect this lcd with Arduino mega.please I really need this.

  • @shaunxthexmod777
    @shaunxthexmod777 ปีที่แล้ว

    hi can the touch screen ,Arduino Uno play. a gif animation ?

  • @engineeringtechniques6179
    @engineeringtechniques6179 7 ปีที่แล้ว

    can you make a small monitor out of this for us

  • @ningarkumar389
    @ningarkumar389 7 ปีที่แล้ว

    sir how to use like button for lamps

  • @DolpGamesOfficial
    @DolpGamesOfficial 7 ปีที่แล้ว

    Arduino: 1.8.1 (Windows 8), Board: "Arduino/Genuino Uno"
    F:\PROEKTY\arduino-1.8.1\screenTouch\screenTouch.ino: In function 'void loop()':
    screenTouch:78: error: 'TSPoint' was not declared in this scope
    TSPoint p = ts.getPoint(); //Get touch point
    ^
    screenTouch:80: error: 'p' was not declared in this scope
    if (p.z > ts.pressureThreshhold) {
    ^
    Multiple libraries were found for "TouchScreen.h"
    Used: F:\PROEKTY\arduino-1.8.1\libraries\TouchScreenLibrary
    Not used: F:\PROEKTY\arduino-1.8.1\libraries\Touch-Screen-Library-master
    Not used: F:\PROEKTY\arduino-1.8.1\libraries\TFTLCD22
    exit status 1
    'TSPoint' was not declared in this scope
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

  • @Jindraxx20
    @Jindraxx20 7 ปีที่แล้ว

    Hello educ8s.tv is it possible to tell me how much programm memory is consumed for this demo program ?

    • @Educ8s
      @Educ8s  7 ปีที่แล้ว

      It is 42% of the program memory of the Arduino Uno.

  • @muhammadhuseinkarbala8696
    @muhammadhuseinkarbala8696 4 ปีที่แล้ว

    I using driver ili9338. It works. But it can't touch. No respond when i touch every side. Can you help me please

  • @udith-pz4tv
    @udith-pz4tv 7 ปีที่แล้ว +1

    Thanks ,

    • @Educ8s
      @Educ8s  7 ปีที่แล้ว

      You are welcome!

  • @robertovaldez-castaneda6281
    @robertovaldez-castaneda6281 ปีที่แล้ว

    HEllo, im just trying to run your program about the ARduino mega 2560 and the 2.8 TFT LCD touch screen but there an error code on the line : TouchScreen ts = TouchScreen(XP, YP, XM, YM, 300); Can you explain this please? it says that "XP" was not declared on the scop > PLEASE HELP !!

  • @payaldas5597
    @payaldas5597 6 ปีที่แล้ว

    Can we use the same code for 2.4'tft lcd to get the same output....plz rly sir

    • @wlasov
      @wlasov 5 ปีที่แล้ว

      I think 2.4 is the same shit)

  • @alexandreallais5447
    @alexandreallais5447 7 ปีที่แล้ว

    sorry but my tft don't work with my arduino mega... do you have an idea why ?

  • @onesteffen
    @onesteffen ปีที่แล้ว

    how can i use the display with a arduino micro?

  • @Anaida52
    @Anaida52 7 ปีที่แล้ว

    Excusme , where is the part two of this tutorial ( i mean more buttons and menus ! ) !!

  • @darrendackly4754
    @darrendackly4754 5 ปีที่แล้ว +1

    I tried the other solutions with no luck before finding the SWTFT.h library. I made these changers and now it works. I hope this help someone.
    If your using the mega you will need to open the swtft.cpp file and uncomment that board and comment out the uno on lines 15 and 16.
    github.com/compihu/SWIFT-Shield
    //#include
    #include
    #include // Hardware-specific library
    #include
    //Adafruit_TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET);
    TouchScreen ts = TouchScreen(XP, YP, XM, YM, 300);
    SWTFT tft;
    tft.begin(0x7783);

  • @Kenneth548
    @Kenneth548 3 ปีที่แล้ว

    2.8" TFTLCD Arduino display with white colour only after install the code on UNO. Please help