mirror of
https://github.com/adafruit/Adafruit_ILI9341.git
synced 2026-10-26 22:10:38 +00:00
Use int16_t for pins instead of int8_t
This commit is contained in:
1 parent
be74aa6d3a
commit
240a43dd3b
2 files changed
+14
-14
No files matched your search
@@ -92,8 +92,8 @@
|
|||||||
@param miso SPI MISO pin # (optional, pass -1 if unused)
|
@param miso SPI MISO pin # (optional, pass -1 if unused)
|
||||||
*/
|
*/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
Adafruit_ILI9341::Adafruit_ILI9341(int8_t cs, int8_t dc, int8_t mosi,
|
Adafruit_ILI9341::Adafruit_ILI9341(int16_t cs, int16_t dc, int16_t mosi,
|
||||||
int8_t sclk, int8_t rst, int8_t miso)
|
int16_t sclk, int16_t rst, int16_t miso)
|
||||||
: Adafruit_SPITFT(ILI9341_TFTWIDTH, ILI9341_TFTHEIGHT, cs, dc, mosi, sclk,
|
: Adafruit_SPITFT(ILI9341_TFTWIDTH, ILI9341_TFTHEIGHT, cs, dc, mosi, sclk,
|
||||||
rst, miso) {}
|
rst, miso) {}
|
||||||
|
|
||||||
@@ -106,7 +106,7 @@ Adafruit_ILI9341::Adafruit_ILI9341(int8_t cs, int8_t dc, int8_t mosi,
|
|||||||
@param rst Reset pin # (optional, pass -1 if unused).
|
@param rst Reset pin # (optional, pass -1 if unused).
|
||||||
*/
|
*/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
Adafruit_ILI9341::Adafruit_ILI9341(int8_t cs, int8_t dc, int8_t rst)
|
Adafruit_ILI9341::Adafruit_ILI9341(int16_t cs, int16_t dc, int16_t rst)
|
||||||
: Adafruit_SPITFT(ILI9341_TFTWIDTH, ILI9341_TFTHEIGHT, cs, dc, rst) {}
|
: Adafruit_SPITFT(ILI9341_TFTWIDTH, ILI9341_TFTHEIGHT, cs, dc, rst) {}
|
||||||
|
|
||||||
#if !defined(ESP8266)
|
#if !defined(ESP8266)
|
||||||
@@ -121,8 +121,8 @@ Adafruit_ILI9341::Adafruit_ILI9341(int8_t cs, int8_t dc, int8_t rst)
|
|||||||
@param rst Reset pin # (optional, pass -1 if unused).
|
@param rst Reset pin # (optional, pass -1 if unused).
|
||||||
*/
|
*/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
Adafruit_ILI9341::Adafruit_ILI9341(SPIClass *spiClass, int8_t dc, int8_t cs,
|
Adafruit_ILI9341::Adafruit_ILI9341(SPIClass *spiClass, int16_t dc, int16_t cs,
|
||||||
int8_t rst)
|
int16_t rst)
|
||||||
: Adafruit_SPITFT(ILI9341_TFTWIDTH, ILI9341_TFTHEIGHT, spiClass, cs, dc,
|
: Adafruit_SPITFT(ILI9341_TFTWIDTH, ILI9341_TFTHEIGHT, spiClass, cs, dc,
|
||||||
rst) {}
|
rst) {}
|
||||||
#endif // end !ESP8266
|
#endif // end !ESP8266
|
||||||
@@ -142,8 +142,8 @@ Adafruit_ILI9341::Adafruit_ILI9341(SPIClass *spiClass, int8_t dc, int8_t cs,
|
|||||||
@param rd Read strobe pin # (optional, pass -1 if unused).
|
@param rd Read strobe pin # (optional, pass -1 if unused).
|
||||||
*/
|
*/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
Adafruit_ILI9341::Adafruit_ILI9341(tftBusWidth busWidth, int8_t d0, int8_t wr,
|
Adafruit_ILI9341::Adafruit_ILI9341(tftBusWidth busWidth, int16_t d0, int16_t wr,
|
||||||
int8_t dc, int8_t cs, int8_t rst, int8_t rd)
|
int16_t dc, int16_t cs, int16_t rst, int16_t rd)
|
||||||
: Adafruit_SPITFT(ILI9341_TFTWIDTH, ILI9341_TFTHEIGHT, busWidth, d0, wr, dc,
|
: Adafruit_SPITFT(ILI9341_TFTWIDTH, ILI9341_TFTHEIGHT, busWidth, d0, wr, dc,
|
||||||
cs, rst, rd) {}
|
cs, rst, rd) {}
|
||||||
|
|
||||||
|
|||||||
+7
-7
@@ -133,15 +133,15 @@ work with ILI9340)
|
|||||||
|
|
||||||
class Adafruit_ILI9341 : public Adafruit_SPITFT {
|
class Adafruit_ILI9341 : public Adafruit_SPITFT {
|
||||||
public:
|
public:
|
||||||
Adafruit_ILI9341(int8_t _CS, int8_t _DC, int8_t _MOSI, int8_t _SCLK,
|
Adafruit_ILI9341(int16_t _CS, int16_t _DC, int16_t _MOSI, int16_t _SCLK,
|
||||||
int8_t _RST = -1, int8_t _MISO = -1);
|
int16_t _RST = -1, int16_t _MISO = -1);
|
||||||
Adafruit_ILI9341(int8_t _CS, int8_t _DC, int8_t _RST = -1);
|
Adafruit_ILI9341(int16_t _CS, int16_t _DC, int16_t _RST = -1);
|
||||||
#if !defined(ESP8266)
|
#if !defined(ESP8266)
|
||||||
Adafruit_ILI9341(SPIClass *spiClass, int8_t dc, int8_t cs = -1,
|
Adafruit_ILI9341(SPIClass *spiClass, int16_t dc, int16_t cs = -1,
|
||||||
int8_t rst = -1);
|
int16_t rst = -1);
|
||||||
#endif // end !ESP8266
|
#endif // end !ESP8266
|
||||||
Adafruit_ILI9341(tftBusWidth busWidth, int8_t d0, int8_t wr, int8_t dc,
|
Adafruit_ILI9341(tftBusWidth busWidth, int16_t d0, int16_t wr, int16_t dc,
|
||||||
int8_t cs = -1, int8_t rst = -1, int8_t rd = -1);
|
int16_t cs = -1, int16_t rst = -1, int16_t rd = -1);
|
||||||
|
|
||||||
void begin(uint32_t freq = 0);
|
void begin(uint32_t freq = 0);
|
||||||
void setRotation(uint8_t r);
|
void setRotation(uint8_t r);
|
||||||
|
|||||||
Reference in new issue
Block a user