Skip to content

Commit

Permalink
Disable SPITFT code if using ATtiny85, update version #
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintYourDragon committed Jan 8, 2018
1 parent 1e0d64f commit 7d73ae8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions Adafruit_SPITFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
MIT license, all text above must be included in any redistribution
****************************************************/

#ifndef __AVR_ATtiny85__ // NOT A CHANCE of this stuff working on ATtiny!

#include "Adafruit_SPITFT.h"
#ifndef ARDUINO_STM32_FEATHER
Expand Down Expand Up @@ -40,7 +41,7 @@ Adafruit_SPITFT::Adafruit_SPITFT(uint16_t w, uint16_t h,
_dc = dc;
_rst = rst;
_sclk = sclk;
_mosi = mosi;
_mosi = mosi;
_miso = miso;
_freq = 0;
#ifdef USE_FAST_PINIO
Expand Down Expand Up @@ -68,9 +69,9 @@ Adafruit_SPITFT::Adafruit_SPITFT(uint16_t w, uint16_t h,
_cs = cs;
_dc = dc;
_rst = rst;
_sclk = -1;
_mosi = -1;
_miso = -1;
_sclk = -1;
_mosi = -1;
_miso = -1;
_freq = 0;
#ifdef USE_FAST_PINIO
csport = portOutputRegister(digitalPinToPort(_cs));
Expand Down Expand Up @@ -334,3 +335,5 @@ void Adafruit_SPITFT::drawRGBBitmap(int16_t x, int16_t y,
}
endWrite();
}

#endif // !__AVR_ATtiny85__
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.2.2
version=1.2.3
author=Adafruit
maintainer=Adafruit <[email protected]>
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 7d73ae8

Please sign in to comment.