forked from Bodmer/TFT_eSPI
-
Notifications
You must be signed in to change notification settings - Fork 24
Closed
Description
reTerminal E1001 with most recent Seed_GFX under Arduino. Test code below. BOARD_SCREEN_COMBO set to 520. The initial "Font default" test appears normal, dark black. The screen full of alphabet appears faded and barely readable. I have tested direct drawString to the epaper, as well as the sprite method below. I tested various numbers of lines, and after six or eight it fades, and gets worse the more you print. See photo. This does NOT happen on an E1002 color machine. The E1001 is not faulty as it appears normal on the cloud based default application. Appears to be a bug in Seeed_GFX. Any suggestions? Thank you
#include "NotoSansBold36.h"
#include "NotoSansMonoSCB20.h"
#define AA_FONT_SMALL NotoSansMonoSCB20
#define AA_FONT_LARGE NotoSansBold36
#ifdef EPAPER_ENABLE // Only compile this code if the EPAPER_ENABLE is defined in User_Setup.h
EPaper epaper;
#endif
TFT_eSprite spr = TFT_eSprite(&epaper);
#define LED_PIN 6
#define BATTERY_ADC_PIN 1 // GPIO1 - Battery voltage ADC
#define BATTERY_ENABLE_PIN 21 // GPIO21 - Battery monitoring enable
RTC_DATA_ATTR int i = 0;
void setup()
{
#ifdef EPAPER_ENABLE
pinMode(LED_PIN,OUTPUT);
pinMode(BATTERY_ENABLE_PIN, OUTPUT);
digitalWrite(LED_PIN,LOW);
digitalWrite(BATTERY_ENABLE_PIN, LOW);
epaper.begin();
epaper.fillScreen(TFT_WHITE);
epaper.setTextColor(TFT_BLACK);
epaper.setTextSize(10);
epaper.drawString("Font default",20,20);
epaper.update(); // update the display
delay(5000);
spr.setColorDepth(1);
spr.createSprite(epaper.width(),epaper.height());
spr.fillScreen(TFT_WHITE);
spr.setTextColor(TFT_BLACK);
spr.setTextSize(2);
for (int i = 0;i<24;i++) {
spr.drawString("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012",5,20 * i);
}
epaper.update(0,0,spr.width(),spr.height(),(uint16_t *)spr.frameBuffer(0)); // update the display
delay(10000);
epaper.fillScreen(TFT_WHITE);
epaper.update(); // update the display
#endif
}
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done