Problem with ILI9341 Screen

Status
Not open for further replies.

juha

New member
Hi,

I have a IL9341 based Adafruit 2.4" TFT + touch screen, connected to Teensy 3.1. Using Arduino 1.65 + Teensyloader 1.24 beta 3 (tried also with previous versions).

The screen works fine with both the slow Adafruit ILI9341 as well as the fas PJRC's IL9341_t3 library. However, its works only when connected to my Mac and run from the Arduino IDE (upload). When the Teensy + screen are powered from a USB power, the screen stays lighted white.

I tried the setup with two Teensies and two screens with the same results. The screens run ok from the USB power, when connected to Arduino Uno.

SPI bus is connected through 8-13 pins (RST, D/C, CD, MOSI, MISO, CLK) and powered from Teensy's Vin (USB). The rest of the program, touch screen etc. run fine with the USB powered connection, just the screen stays white. A simple example program is below:



Code:
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"

// For the Adafruit shield, these are the default.
#define TFT_DC 9
#define TFT_CS 10

Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);

void setup() {
  tft.begin();
}


void loop(void) {
  testFillScreen();
}

void testFillScreen() {
  unsigned long start = micros();
  tft.fillScreen(ILI9341_BLACK);
  tft.fillScreen(ILI9341_RED);
  tft.fillScreen(ILI9341_GREEN);
  tft.fillScreen(ILI9341_BLUE);
  tft.fillScreen(ILI9341_BLACK);
}
 
Status
Not open for further replies.
Back
Top