title: Using 2.4" MCUFriend TFT LCD Display with Arduino
body: <p>I am hoping that someone is familiar with the 2.4" TFT LCD Display board from MCUFriend. I am having troubling using this board with my Arduino Uno and I was hoping someone could help.</p>
  
  <p>The problem that I am having is that there are all of these colored lines being drawn on the screen after a reset and initialization. Right now all i am trying to do is fill the screen and draw a box. here is my code:</p>
  
  <pre class="lang-cpp prettyprint-override"><code>#include &lt;Adafruit_GFX.h&gt;
  #include &lt;TouchScreen.h&gt;
  #include &lt;Adafruit_TFTLCD.h&gt;
  
  //SPI Communication
  #define LCD_CS A3
  #define LCD_CD A2
  #define LCD_WR A1
  #define LCD_RD A0 
  #define LCD_RESET A4 
  
  //Color Definitons
  #define BLACK   0x0000
  #define WHITE   0xFFFF
  
  #define BOXSIZE  40
  
  Adafruit_TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET);
  
  void setup() {  
    Serial.begin(9600);
  
    tft.reset();  
    tft.begin();
  
    tft.fillScreen(BLACK);
    tft.drawRect(100, 100, BOXSIZE, BOXSIZE, WHITE);
  }
  
  void loop() {
  
  }
  </code></pre>
  
  <p>This is what my Screen is doing:</p>
  
  <p><img src="https://i.stack.imgur.com/57vvf.jpg" alt="enter image description here"></p>
  
  <p>As you can see, the background is black, and a box is being drawn behind these colored bars.</p>
  
  <p>Any help would be greatly appreciated!!</p>
  
  <p>Thank you very very much!</p>