forked from Bodmer/TFT_eSPI
@@ -475,9 +475,13 @@ void TFT_eSPI::pushBlock(uint16_t color, uint32_t len){
|
|||||||
tft_Write_16(color);
|
tft_Write_16(color);
|
||||||
#if defined (SSD1963_DRIVER)
|
#if defined (SSD1963_DRIVER)
|
||||||
while (--len) {WR_L; WR_H; WR_L; WR_H; WR_L; WR_H;}
|
while (--len) {WR_L; WR_H; WR_L; WR_H; WR_L; WR_H;}
|
||||||
|
#else
|
||||||
|
#ifdef PSEUDO_16_BIT
|
||||||
|
while (--len) {WR_L; WR_H;}
|
||||||
#else
|
#else
|
||||||
while (--len) {WR_L; WR_H; WR_L; WR_H;}
|
while (--len) {WR_L; WR_H; WR_L; WR_H;}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else while (len--) {tft_Write_16(color);}
|
else while (len--) {tft_Write_16(color);}
|
||||||
}
|
}
|
||||||
|
@@ -319,6 +319,11 @@
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#ifdef PSEUDO_16_BIT
|
||||||
|
// One write strobe for both bytes
|
||||||
|
#define tft_Write_16(C) GPIO.out_w1tc = clr_mask; GPIO.out_w1ts = set_mask((uint8_t) ((C) >> 0)); WR_H
|
||||||
|
#define tft_Write_16S(C) GPIO.out_w1tc = clr_mask; GPIO.out_w1ts = set_mask((uint8_t) ((C) >> 8)); WR_H
|
||||||
|
#else
|
||||||
// Write 16 bits to TFT
|
// Write 16 bits to TFT
|
||||||
#define tft_Write_16(C) GPIO.out_w1tc = clr_mask; GPIO.out_w1ts = set_mask((uint8_t) ((C) >> 8)); WR_H; \
|
#define tft_Write_16(C) GPIO.out_w1tc = clr_mask; GPIO.out_w1ts = set_mask((uint8_t) ((C) >> 8)); WR_H; \
|
||||||
GPIO.out_w1tc = clr_mask; GPIO.out_w1ts = set_mask((uint8_t) ((C) >> 0)); WR_H
|
GPIO.out_w1tc = clr_mask; GPIO.out_w1ts = set_mask((uint8_t) ((C) >> 0)); WR_H
|
||||||
@@ -328,6 +333,8 @@
|
|||||||
GPIO.out_w1tc = clr_mask; GPIO.out_w1ts = set_mask((uint8_t) ((C) >> 8)); WR_H
|
GPIO.out_w1tc = clr_mask; GPIO.out_w1ts = set_mask((uint8_t) ((C) >> 8)); WR_H
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
// Write 32 bits to TFT
|
// Write 32 bits to TFT
|
||||||
#define tft_Write_32(C) GPIO.out_w1tc = clr_mask; GPIO.out_w1ts = set_mask((uint8_t) ((C) >> 24)); WR_H; \
|
#define tft_Write_32(C) GPIO.out_w1tc = clr_mask; GPIO.out_w1ts = set_mask((uint8_t) ((C) >> 24)); WR_H; \
|
||||||
GPIO.out_w1tc = clr_mask; GPIO.out_w1ts = set_mask((uint8_t) ((C) >> 16)); WR_H; \
|
GPIO.out_w1tc = clr_mask; GPIO.out_w1ts = set_mask((uint8_t) ((C) >> 16)); WR_H; \
|
||||||
|
Reference in New Issue
Block a user