Skip to content

Commit

Permalink
Allow GFX code to compile on WICED w/o SPIClass
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintYourDragon committed Nov 9, 2018
1 parent 0521944 commit 33158b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions Adafruit_SPITFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,19 @@
*
*/

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

#include "Adafruit_SPITFT.h"
#ifndef ARDUINO_STM32_FEATHER
#include "pins_arduino.h"
#include "pins_arduino.h"
#ifndef RASPI
#include "wiring_private.h"
#endif
#include "wiring_private.h"
#endif
#include <limits.h>

#include "Adafruit_SPITFT_Macros.h"



/**************************************************************************/
/*!
@brief Pass 8-bit (each) R,G,B, get back 16-bit packed color
Expand Down Expand Up @@ -571,4 +569,4 @@ void Adafruit_SPITFT::drawRGBBitmap(int16_t x, int16_t y,
endWrite();
}

#endif // !__AVR_ATtiny85__
#endif // !__AVR_ATtiny85__ && !ARDUINO_STM32_FEATHER
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit GFX Library
version=1.3.1
version=1.3.2
author=Adafruit
maintainer=Adafruit <info@adafruit.com>
sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from.
Expand Down

0 comments on commit 33158b3

Please sign in to comment.