Skip to content

Commit 4c95a95

Browse files
committed
correct fix for attiny
1 parent 709437a commit 4c95a95

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Adafruit_MonoOLED.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
*
1616
*/
1717

18+
#if !defined(__AVR_ATtiny85__) // Not for ATtiny, at all
19+
1820
#include "Adafruit_MonoOLED.h"
1921
#include <Adafruit_GFX.h>
2022

@@ -396,3 +398,6 @@ void Adafruit_MonoOLED::setContrast(uint8_t level) {
396398
uint8_t cmd[] = {MONOOLED_SETCONTRAST, level};
397399
oled_commandList(cmd, 2);
398400
}
401+
402+
403+
#endif /* ATTIN85 not supported */

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.8.1
2+
version=1.8.2
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)