mirror of
https://github.com/YuzuZensai/MCUFRIEND_kbv.git
synced 2026-01-06 04:32:38 +00:00
bump version, extra param in pushColors()
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user