mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2024-10-03 18:18:46 -04:00
Compare commits
5 Commits
e0b04bc37e
...
b3a414486c
Author | SHA1 | Date | |
---|---|---|---|
|
b3a414486c | ||
|
0e32d7dc76 | ||
|
5080bec822 | ||
|
4f0ab8bdac | ||
|
74802f25f0 |
@ -1179,6 +1179,7 @@ void Adafruit_GFX::drawChar(int16_t x, int16_t y, unsigned char c,
|
||||
// drawChar() directly with 'bad' characters of font may cause mayhem!
|
||||
|
||||
c -= (uint8_t)pgm_read_byte(&gfxFont->first);
|
||||
uint8_t yAdvance = (uint8_t)pgm_read_byte(&gfxFont->yAdvance);
|
||||
GFXglyph *glyph = pgm_read_glyph_ptr(gfxFont, c);
|
||||
uint8_t *bitmap = pgm_read_bitmap_ptr(gfxFont);
|
||||
|
||||
@ -1220,10 +1221,11 @@ void Adafruit_GFX::drawChar(int16_t x, int16_t y, unsigned char c,
|
||||
}
|
||||
if (bits & 0x80) {
|
||||
if (size_x == 1 && size_y == 1) {
|
||||
writePixel(x + xo + xx, y + yo + yy, color);
|
||||
writePixel(x + xo + xx, y + yo + yy + yAdvance, color);
|
||||
} else {
|
||||
writeFillRect(x + (xo16 + xx) * size_x, y + (yo16 + yy) * size_y,
|
||||
size_x, size_y, color);
|
||||
writeFillRect(x + (xo16 + xx) * size_x,
|
||||
y + (yo16 + yy) * size_y + yAdvance * size_y, size_x,
|
||||
size_y, color);
|
||||
}
|
||||
}
|
||||
bits <<= 1;
|
||||
|
@ -15,7 +15,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATtiny85__) // Not for ATtiny, at all
|
||||
// Not for ATtiny, at all
|
||||
#if !defined(__AVR_ATtiny85__) && !defined(__AVR_ATtiny84__)
|
||||
|
||||
#include "Adafruit_GrayOLED.h"
|
||||
#include <Adafruit_GFX.h>
|
||||
|
@ -24,7 +24,8 @@
|
||||
#ifndef _Adafruit_GRAYOLED_H_
|
||||
#define _Adafruit_GRAYOLED_H_
|
||||
|
||||
#if !defined(__AVR_ATtiny85__) // Not for ATtiny, at all
|
||||
// Not for ATtiny, at all
|
||||
#if !defined(__AVR_ATtiny85__) && !defined(__AVR_ATtiny84__)
|
||||
|
||||
#include <Adafruit_GFX.h>
|
||||
#include <Adafruit_I2CDevice.h>
|
||||
@ -96,5 +97,5 @@ private:
|
||||
TwoWire *_theWire = NULL; ///< The underlying hardware I2C
|
||||
};
|
||||
|
||||
#endif // end __AVR_ATtiny85__
|
||||
#endif // end __AVR_ATtiny85__ __AVR_ATtiny84__
|
||||
#endif // _Adafruit_GrayOLED_H_
|
||||
|
@ -31,7 +31,8 @@
|
||||
* BSD license, all text here must be included in any redistribution.
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATtiny85__) // Not for ATtiny, at all
|
||||
// Not for ATtiny, at all
|
||||
#if !defined(__AVR_ATtiny85__) && !defined(__AVR_ATtiny84__)
|
||||
|
||||
#include "Adafruit_SPITFT.h"
|
||||
|
||||
@ -2558,4 +2559,4 @@ inline void Adafruit_SPITFT::TFT_RD_LOW(void) {
|
||||
#endif // end !USE_FAST_PINIO
|
||||
}
|
||||
|
||||
#endif // end __AVR_ATtiny85__
|
||||
#endif // end __AVR_ATtiny85__ __AVR_ATtiny84__
|
||||
|
@ -20,7 +20,8 @@
|
||||
#ifndef _ADAFRUIT_SPITFT_H_
|
||||
#define _ADAFRUIT_SPITFT_H_
|
||||
|
||||
#if !defined(__AVR_ATtiny85__) // Not for ATtiny, at all
|
||||
// Not for ATtiny, at all
|
||||
#if !defined(__AVR_ATtiny85__) && !defined(__AVR_ATtiny84__)
|
||||
|
||||
#include "Adafruit_GFX.h"
|
||||
#include <SPI.h>
|
||||
@ -526,5 +527,5 @@ protected:
|
||||
uint32_t _freq = 0; ///< Dummy var to keep subclasses happy
|
||||
};
|
||||
|
||||
#endif // end __AVR_ATtiny85__
|
||||
#endif // end __AVR_ATtiny85__ __AVR_ATtiny84__
|
||||
#endif // end _ADAFRUIT_SPITFT_H_
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=Adafruit GFX Library
|
||||
version=1.11.9
|
||||
version=1.11.10
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user