Adafruit_ILI9341

Anyone used the portenta yet with this library or have any examples? I tried the link below but did not have any luck. I do not have the touchscreen version.

This is what I'm trying to get to work.

// demonstrates drawing and touch operations.
// needs this library  Adafruit_ILI9341
// needs this library install as zip file https://github.com/Lennart401/PortentaTouchScreen
//
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>

// Set for Portenta
// SPI settings  MISO (CIPO) D10  // on Portenta
//               MOSI (COPI) D9
//               SCK         D8
#define TFT_CS D7
#define TFT_DC D6
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);


void setup()
{
  Serial.begin(9600);
  
  tft.begin();

  tft.fillScreen(ILI9341_BLUE);
  // origin = left,top landscape (USB left upper)
  tft.setRotation(1); 
  
  tft.setTextColor(ILI9341_WHITE);
  tft.setTextSize(2);
  tft.setCursor(100, 20);  //before print set x,y
  tft.println("Working!");
}


void loop(){
}

Thanks.

I got it working. For some reason when I connect it to my breakout board it will not work. I might have bridged some pins on the high density connectors when I was soldering the headers on the H7. I have another H7 on order and will try it out once it arrives.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.