adafruit / Adafruit_ILI9341

Library for Adafruit ILI9341 displays
415 stars 283 forks source link

Compatibility problems with AVR Dx series microcontrollers. #85

Open Guy1000 opened 1 year ago

Guy1000 commented 1 year ago

Thank you for opening an issue on an Adafruit Arduino library repository. To improve the speed of resolution please review the following guidelines and common troubleshooting steps below before creating the issue:

If you're sure this issue is a defect in the code and checked the steps above please fill in the following fields to provide enough troubleshooting information. You may delete the guideline and text above to just leave the following details:

include

include "Adafruit_GFX.h"

include "Adafruit_ILI9341.h"

define TFT_DC PIN_PA3

define TFT_CS PIN_PA7

//#define TFT_RST PIN_PF1 //tied high with resistor

define TFT_MOSI PIN_PC0

define TFT_CLK PIN_PC2

define TFT_MISO PIN_PC1

Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);

void setup() { SPI.swap(SPI1_SWAP0); //Swaps to the portc MVIO to use internal level shifters SPI.begin(); Serial.begin(9600); Serial.println("STARTED"); //Before function is called the print is successful tft.begin(); //gets stuck somewhere in here Serial.println("SUCCESSFUL"); //This print never occurs }

void loop{ //do nothing

}**