I have a Heltec 1.54" V2 (BW) that seems to work properly with the fonts example if DEPG0150BNS810 is defined on an Arduino Mega 2560. But for some reason fastmodeOn seems to have the exact opposite effect. Meaning for a proper full clear I have to do:
DRAW(display) {
display.fastmodeOn();
display.clear();
}
delay(1000);
Then the display clears the entire contents without ghosting.
- Is this a display (driver) quirk or nuance of this library's
clear()?
So the resulting minimal working code looks like this:
void setup() {
display.setRotation(PINS_RIGHT);
display.setFont(&FreeSerifBold12pt7b);
display.setDefaultColor(WHITE);
display.setTextColor(BLACK);
DRAW(display) {
display.fastmodeOn();
display.clear();
}
delay(2000);
}
void loop() {
DRAW(display) {
display.fastmodeOn();
display.clear();
}
delay(2000);
DRAW(display) {
display.fastmodeOff();
display.setCursor(5, 25);
display.print(millis());
}
delay(5000);
}
If I merge the two DRAWs in the loop text starts overlapping (seems to do a partial update only). If I don't do fastmodeOn() in the first DRAW there's always slight ghosting. If I don't do fastmodeOff() in the second block, it displays the previous value and then (with ghosting) the new value on a previously fully cleared display.
What I'm getting at is that I'd expect this to work (draw the new text once in a while without ghosting), but it doesn't:
void setup() {
display.setRotation(PINS_RIGHT);
display.setFont(&FreeSerifBold12pt7b);
display.setDefaultColor(WHITE);
display.setTextColor(BLACK);
display.fastmodeOff();
display.clear();
delay(2000);
}
void loop() {
DRAW(display) {
display.clear();
display.setCursor(5, 25);
display.print(millis());
}
delay(5000);
}
What wrong assumptions am I making about the display or the library?
I have a Heltec 1.54" V2 (BW) that seems to work properly with the
fontsexample ifDEPG0150BNS810is defined on an Arduino Mega 2560. But for some reasonfastmodeOnseems to have the exact opposite effect. Meaning for a proper full clear I have to do:Then the display clears the entire contents without ghosting.
clear()?So the resulting minimal working code looks like this:
If I merge the two
DRAWs in the loop text starts overlapping (seems to do a partial update only). If I don't dofastmodeOn()in the firstDRAWthere's always slight ghosting. If I don't dofastmodeOff()in the second block, it displays the previous value and then (with ghosting) the new value on a previously fully cleared display.What I'm getting at is that I'd expect this to work (draw the new text once in a while without ghosting), but it doesn't:
What wrong assumptions am I making about the display or the library?