mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2024-10-03 18:18:46 -04:00
turns out having two things named tft8 makes subclassing very :(
This commit is contained in:
parent
35055667c4
commit
1b033808ab
@ -330,7 +330,7 @@ Adafruit_SPITFT::Adafruit_SPITFT(uint16_t w, uint16_t h, SPIClass *spiClass,
|
||||
@param busWidth If tft16 (enumeration in header file), is a 16-bit
|
||||
parallel connection, else 8-bit.
|
||||
16-bit isn't fully implemented or tested yet so
|
||||
applications should pass "tft8" for now...needed to
|
||||
applications should pass "tft8bitbus" for now...needed to
|
||||
stick a required enum argument in there to
|
||||
disambiguate this constructor from the soft-SPI case.
|
||||
Argument is ignored on 8-bit architectures (no 'wide'
|
||||
@ -361,7 +361,7 @@ Adafruit_SPITFT::Adafruit_SPITFT(uint16_t w, uint16_t h, tftBusWidth busWidth,
|
||||
tft8._d0 = d0;
|
||||
tft8._wr = wr;
|
||||
tft8._rd = rd;
|
||||
tft8.wide = (busWidth == tft16);
|
||||
tft8.wide = (busWidth == tft16bitbus);
|
||||
#if defined(USE_FAST_PINIO)
|
||||
#if defined(HAS_PORT_SET_CLR)
|
||||
#if defined(CORE_TEENSY)
|
||||
|
@ -94,7 +94,7 @@ typedef volatile PORT_t* PORTreg_t; ///< PORT register type
|
||||
// an enumerated type as the first argument: tft8 (for 8-bit parallel) or
|
||||
// tft16 (for 16-bit)...even though 16-bit isn't fully implemented or tested
|
||||
// and might never be, still needed that disambiguation from soft SPI.
|
||||
enum tftBusWidth { tft8, tft16 }; ///< For first arg to parallel constructor
|
||||
enum tftBusWidth { tft8bitbus, tft16bitbus }; ///< For first arg to parallel constructor
|
||||
|
||||
// CLASS DEFINITION --------------------------------------------------------
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user