Skip to content

Commit 33158b3

Browse files
Allow GFX code to compile on WICED w/o SPIClass
1 parent 0521944 commit 33158b3

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Adafruit_SPITFT.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,19 @@
3232
*
3333
*/
3434

35-
#ifndef __AVR_ATtiny85__ // NOT A CHANCE of this stuff working on ATtiny!
35+
// NOT A CHANCE of this stuff working on ATtiny, No SPIClass on WICED (yet?)
36+
#if (!defined(__AVR_ATtiny85__) && !defined(ARDUINO_STM32_FEATHER))
3637

3738
#include "Adafruit_SPITFT.h"
38-
#ifndef ARDUINO_STM32_FEATHER
39-
#include "pins_arduino.h"
39+
#include "pins_arduino.h"
4040
#ifndef RASPI
41-
#include "wiring_private.h"
42-
#endif
41+
#include "wiring_private.h"
4342
#endif
4443
#include <limits.h>
4544

4645
#include "Adafruit_SPITFT_Macros.h"
4746

4847

49-
5048
/**************************************************************************/
5149
/*!
5250
@brief Pass 8-bit (each) R,G,B, get back 16-bit packed color
@@ -571,4 +569,4 @@ void Adafruit_SPITFT::drawRGBBitmap(int16_t x, int16_t y,
571569
endWrite();
572570
}
573571

574-
#endif // !__AVR_ATtiny85__
572+
#endif // !__AVR_ATtiny85__ && !ARDUINO_STM32_FEATHER

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit GFX Library
2-
version=1.3.1
2+
version=1.3.2
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from.

0 commit comments

Comments
 (0)