Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Arduino ILI9341 TFT Display Pitanja
#11
Umesto TFT_RST unesi -1 u ovu funkciju koju zoves na pocetku.

Pogledaj kako izgleda to u biblioteci:


/*!

@brief Instantiate Adafruit ILI9341 driver with hardware SPI using the

default SPI peripheral.

@param cs Chip select pin # (OK to pass -1 if CS tied to GND).

@param dc Data/Command pin # (required).

@param rst Reset pin # (optional, pass -1 if unused).

*/

/**************************************************************************/

Adafruit_ILI9341::Adafruit_ILI9341(int8_t cs, int8_t dc, int8_t rst) :

Adafruit_SPITFT(ILI9341_TFTWIDTH, ILI9341_TFTHEIGHT, cs, dc, rst) {

}

/**************************************************************************/


Dakle:

Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, -1);
Reply


Messages In This Thread
Arduino ILI9341 TFT Display Pitanja - by ronovar - 10-08-2018, 12:48 PM
RE: Arduino ILI9341 TFT Display Pitanja - by gorankg - 04-11-2019, 09:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)