bump version, extra param in pushColors()

This commit is contained in:
prenticedavid
2017-01-26 11:10:42 +00:00
parent 1de1838f0b
commit b9b80496a7
3 changed files with 6 additions and 6 deletions

View File

@@ -615,7 +615,7 @@ void MCUFRIEND_kbv::pushColors(uint8_t * block, int16_t n, bool first)
CS_IDLE;
}
void MCUFRIEND_kbv::pushColors(const uint8_t * block, int16_t n, bool first)
void MCUFRIEND_kbv::pushColors(const uint8_t * block, int16_t n, bool first, bool bigend) //costs 28 bytes
{
uint16_t color;
uint8_t h, l;
@@ -627,7 +627,7 @@ void MCUFRIEND_kbv::pushColors(const uint8_t * block, int16_t n, bool first)
while (n-- > 0) {
l = pgm_read_byte(block++);
h = pgm_read_byte(block++);
color = h << 8 | l;
color = (bigend) ? (l << 8 ) | h : (h << 8) | l;
write16(color);
}
CS_IDLE;

View File

@@ -1,5 +1,5 @@
#ifndef MCUFRIEND_KBV_H_
#define MCUFRIEND_KBV_H_ 293
#define MCUFRIEND_KBV_H_ 294
//#define USE_SERIAL
@@ -39,7 +39,7 @@ class MCUFRIEND_kbv : public Adafruit_GFX {
void setAddrWindow(int16_t x, int16_t y, int16_t x1, int16_t y1);
void pushColors(uint16_t *block, int16_t n, bool first);
void pushColors(uint8_t *block, int16_t n, bool first);
void pushColors(const uint8_t *block, int16_t n, bool first);
void pushColors(const uint8_t *block, int16_t n, bool first, bool bigend = false);
void vertScroll(int16_t top, int16_t scrollines, int16_t offset);
private:

View File

@@ -1,5 +1,5 @@
name=MCUFRIEND_kbv
version=2.9.3
version=2.9.4-beta
author=David Prentice
maintainer=David Prentice
sentence=TFT Library for 2.4, 2.8, 3.5, 3.6, 3.95 inch mcufriend UNO Shields