EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / Arduino Uno and 2.8″ TFT (mcufriend) interface issue

Arduino Uno and 2.8″ TFT (mcufriend) interface issue

|

Microcontroller › Arduino › Arduino Uno and 2.8″ TFT (mcufriend) interface issue

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 4 months ago by Ashutosh Bhatt.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • November 22, 2016 at 9:30 am #4577
    Nirav Gadhiya
    Participant

    Hi,

    I want to interface 2.8" TFT which is of mcufriend, images attached for reference, with arduino uno.

    I have written code as per below given but it display on white screen.

    I have used SPI interfacing. Is there any library missing or anything else is the issue?

    #include <TFT.h>
    #include <SPI.h>

    #define cs   A3
    #define dc   A2
    #define rst  A4

    TFT TFTscreen = TFT(cs, dc, rst);

    char sensorPrintout[4];

    void setup() {

      TFTscreen.begin();

      TFTscreen.background(0, 0, 0);

      TFTscreen.stroke(255, 255, 255);

      TFTscreen.setTextSize(2);

      TFTscreen.text("Sensor Value :n ", 0, 0);

      TFTscreen.setTextSize(5);
    }

    void loop() {

      String sensorVal = String(analogRead(A0));

      sensorVal.toCharArray(sensorPrintout, 4);

      TFTscreen.stroke(255, 255, 255);
     
      TFTscreen.text(sensorPrintout, 0, 20);

      delay(250);

      TFTscreen.stroke(0, 0, 0);
      TFTscreen.text(sensorPrintout, 0, 20);
    }

     

     

    November 28, 2016 at 7:44 am #14249
    Ashutosh Bhatt
    Participant

    i am working on this interfacing and found some nice libraries

    which built in controller your LCD has? like SSD or ILI or something like that

    the arduino may have compatible library

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • compile errors April 22, 2026
  • Quick Tip: Handling CH340 Driver Issues on Uno SMD Clones April 22, 2026
  • My Advanced Realistic Humanoid Robots Project April 22, 2026
  • Getting into an LED bulb April 21, 2026
  • understanding of resonance in time domain April 21, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise