Disable SPITFT code if using ATtiny85, update version #

This commit is contained in:
Phillip Burgess 2018-01-08 11:59:27 -08:00
parent 1e0d64f11a
commit 7d73ae8214
2 changed files with 8 additions and 5 deletions

View File

@ -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__

View File

@ -1,5 +1,5 @@
name=Adafruit GFX Library
version=1.2.2
version=1.2.3
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.