From 7d73ae821439f62a8f332cc67e2c1ce2455f073c Mon Sep 17 00:00:00 2001 From: Phillip Burgess Date: Mon, 8 Jan 2018 11:59:27 -0800 Subject: [PATCH] Disable SPITFT code if using ATtiny85, update version # --- Adafruit_SPITFT.cpp | 11 +++++++---- library.properties | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Adafruit_SPITFT.cpp b/Adafruit_SPITFT.cpp index 9b6c8bb..fb36c42 100644 --- a/Adafruit_SPITFT.cpp +++ b/Adafruit_SPITFT.cpp @@ -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 @@ -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 @@ -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)); @@ -334,3 +335,5 @@ void Adafruit_SPITFT::drawRGBBitmap(int16_t x, int16_t y, } endWrite(); } + +#endif // !__AVR_ATtiny85__ diff --git a/library.properties b/library.properties index c6b0c47..d501e82 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Adafruit GFX Library -version=1.2.2 +version=1.2.3 author=Adafruit maintainer=Adafruit sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from.