Skip to content

Commit

Permalink
Appease ESP8266 compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintYourDragon committed Mar 3, 2019
1 parent cc9a8e5 commit 72e3f29
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Adafruit_ST7735.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Adafruit_ST7735::Adafruit_ST7735(int8_t cs, int8_t dc, int8_t rst) :
Adafruit_ST77xx(cs, dc, rst) {
}

#if !defined(ESP8266)
/*!
@brief Instantiate Adafruit ST7735 driver with selectable hardware SPI
@param spiClass Pointer to an SPI device to use (e.g. &SPI1)
Expand All @@ -35,6 +36,7 @@ Adafruit_ST7735::Adafruit_ST7735(int8_t cs, int8_t dc, int8_t rst) :
Adafruit_ST7735::Adafruit_ST7735(SPIClass *spiClass, int8_t cs, int8_t dc,
int8_t rst) : Adafruit_ST77xx(spiClass, cs, dc, rst) {
}
#endif // end !ESP8266

// SCREEN INITIALIZATION ***************************************************

Expand Down
2 changes: 2 additions & 0 deletions Adafruit_ST7735.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ class Adafruit_ST7735 : public Adafruit_ST77xx {
Adafruit_ST7735(int8_t cs, int8_t dc, int8_t mosi, int8_t sclk,
int8_t rst);
Adafruit_ST7735(int8_t cs, int8_t dc, int8_t rst);
#if !defined(ESP8266)
Adafruit_ST7735(SPIClass *spiClass, int8_t cs, int8_t dc, int8_t rst);
#endif // end !ESP8266

// Differences between displays (usu. identified by colored tab on
// plastic overlay) are odd enough that we need to do this 'by hand':
Expand Down
2 changes: 2 additions & 0 deletions Adafruit_ST7789.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Adafruit_ST7789::Adafruit_ST7789(int8_t cs, int8_t dc, int8_t rst) :
Adafruit_ST77xx(cs, dc, rst) {
}

#if !defined(ESP8266)
/*!
@brief Instantiate Adafruit ST7789 driver with selectable hardware SPI
@param spiClass Pointer to an SPI device to use (e.g. &SPI1)
Expand All @@ -35,6 +36,7 @@ Adafruit_ST7789::Adafruit_ST7789(int8_t cs, int8_t dc, int8_t rst) :
Adafruit_ST7789::Adafruit_ST7789(SPIClass *spiClass, int8_t cs, int8_t dc,
int8_t rst) : Adafruit_ST77xx(spiClass, cs, dc, rst) {
}
#endif // end !ESP8266

// SCREEN INITIALIZATION ***************************************************

Expand Down
2 changes: 2 additions & 0 deletions Adafruit_ST7789.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ class Adafruit_ST7789 : public Adafruit_ST77xx {
Adafruit_ST7789(int8_t cs, int8_t dc, int8_t mosi, int8_t sclk,
int8_t rst = -1);
Adafruit_ST7789(int8_t cs, int8_t dc, int8_t rst);
#if !defined(ESP8266)
Adafruit_ST7789(SPIClass *spiClass, int8_t cs, int8_t dc, int8_t rst);
#endif // end !ESP8266

void setRotation(uint8_t m);
void init(uint16_t width, uint16_t height);
Expand Down
2 changes: 2 additions & 0 deletions Adafruit_ST77xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Adafruit_ST77xx::Adafruit_ST77xx(int8_t cs, int8_t dc, int8_t rst) :
Adafruit_SPITFT(ST7735_TFTWIDTH_128, ST7735_TFTHEIGHT_160, cs, dc, rst) {
}

#if !defined(ESP8266)
/**************************************************************************/
/*!
@brief Instantiate Adafruit ST77XX driver with selectable hardware SPI
Expand All @@ -73,6 +74,7 @@ Adafruit_ST77xx::Adafruit_ST77xx(SPIClass *spiClass, int8_t cs, int8_t dc,
int8_t rst) : Adafruit_SPITFT(ST7735_TFTWIDTH_128, ST7735_TFTHEIGHT_160,
spiClass, cs, dc, rst) {
}
#endif // end !ESP8266

/**************************************************************************/
/*!
Expand Down
2 changes: 2 additions & 0 deletions Adafruit_ST77xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ class Adafruit_ST77xx : public Adafruit_SPITFT {
Adafruit_ST77xx(int8_t _CS, int8_t _DC, int8_t _MOSI, int8_t _SCLK,
int8_t _RST = -1, int8_t _MISO = -1);
Adafruit_ST77xx(int8_t CS, int8_t RS, int8_t RST = -1);
#if !defined(ESP8266)
Adafruit_ST77xx(SPIClass *spiClass, int8_t CS, int8_t RS, int8_t
RST = -1);
#endif // end !ESP8266

void setAddrWindow(uint16_t x, uint16_t y, uint16_t w, uint16_t h);
void setRotation(uint8_t r);
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit ST7735 and ST7789 Library
version=1.2.7
version=1.2.8
author=Adafruit
maintainer=Adafruit <[email protected]>
sentence=This is a library for the Adafruit ST7735 and ST7789 SPI displays.
Expand Down

0 comments on commit 72e3f29

Please sign in to comment.