Skip to content

Commit 7d73ae8

Browse files
Disable SPITFT code if using ATtiny85, update version #
1 parent 1e0d64f commit 7d73ae8

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Adafruit_SPITFT.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
MIT license, all text above must be included in any redistribution
1414
****************************************************/
1515

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

1718
#include "Adafruit_SPITFT.h"
1819
#ifndef ARDUINO_STM32_FEATHER
@@ -40,7 +41,7 @@ Adafruit_SPITFT::Adafruit_SPITFT(uint16_t w, uint16_t h,
4041
_dc = dc;
4142
_rst = rst;
4243
_sclk = sclk;
43-
_mosi = mosi;
44+
_mosi = mosi;
4445
_miso = miso;
4546
_freq = 0;
4647
#ifdef USE_FAST_PINIO
@@ -68,9 +69,9 @@ Adafruit_SPITFT::Adafruit_SPITFT(uint16_t w, uint16_t h,
6869
_cs = cs;
6970
_dc = dc;
7071
_rst = rst;
71-
_sclk = -1;
72-
_mosi = -1;
73-
_miso = -1;
72+
_sclk = -1;
73+
_mosi = -1;
74+
_miso = -1;
7475
_freq = 0;
7576
#ifdef USE_FAST_PINIO
7677
csport = portOutputRegister(digitalPinToPort(_cs));
@@ -334,3 +335,5 @@ void Adafruit_SPITFT::drawRGBBitmap(int16_t x, int16_t y,
334335
}
335336
endWrite();
336337
}
338+
339+
#endif // !__AVR_ATtiny85__

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.2.2
2+
version=1.2.3
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)