mirror of
https://github.com/YuzuZensai/MCUFRIEND_kbv.git
synced 2026-01-31 14:57:48 +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;
|
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;
|
uint16_t color;
|
||||||
uint8_t h, l;
|
uint8_t h, l;
|
||||||
@@ -627,7 +627,7 @@ void MCUFRIEND_kbv::pushColors(const uint8_t * block, int16_t n, bool first)
|
|||||||
while (n-- > 0) {
|
while (n-- > 0) {
|
||||||
l = pgm_read_byte(block++);
|
l = pgm_read_byte(block++);
|
||||||
h = pgm_read_byte(block++);
|
h = pgm_read_byte(block++);
|
||||||
color = h << 8 | l;
|
color = (bigend) ? (l << 8 ) | h : (h << 8) | l;
|
||||||
write16(color);
|
write16(color);
|
||||||
}
|
}
|
||||||
CS_IDLE;
|
CS_IDLE;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef MCUFRIEND_KBV_H_
|
#ifndef MCUFRIEND_KBV_H_
|
||||||
#define MCUFRIEND_KBV_H_ 293
|
#define MCUFRIEND_KBV_H_ 294
|
||||||
|
|
||||||
//#define USE_SERIAL
|
//#define USE_SERIAL
|
||||||
|
|
||||||
@@ -39,8 +39,8 @@ class MCUFRIEND_kbv : public Adafruit_GFX {
|
|||||||
void setAddrWindow(int16_t x, int16_t y, int16_t x1, int16_t y1);
|
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(uint16_t *block, int16_t n, bool first);
|
||||||
void pushColors(uint8_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);
|
void vertScroll(int16_t top, int16_t scrollines, int16_t offset);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint16_t _lcd_ID, _lcd_rev, _lcd_madctl, _lcd_drivOut, _MC, _MP, _MW, _SC, _EC, _SP, _EP;
|
uint16_t _lcd_ID, _lcd_rev, _lcd_madctl, _lcd_drivOut, _MC, _MP, _MW, _SC, _EC, _SP, _EP;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name=MCUFRIEND_kbv
|
name=MCUFRIEND_kbv
|
||||||
version=2.9.3
|
version=2.9.4-beta
|
||||||
author=David Prentice
|
author=David Prentice
|
||||||
maintainer=David Prentice
|
maintainer=David Prentice
|
||||||
sentence=TFT Library for 2.4, 2.8, 3.5, 3.6, 3.95 inch mcufriend UNO Shields
|
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