Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTGO T5 V2.0 2.13" SCREEN ISSUE #11

Open
bluegizmo83 opened this issue Jun 10, 2020 · 0 comments
Open

TTGO T5 V2.0 2.13" SCREEN ISSUE #11

bluegizmo83 opened this issue Jun 10, 2020 · 0 comments

Comments

@bluegizmo83
Copy link

bluegizmo83 commented Jun 10, 2020

EDIT: Nevermind, there was nothing wrong with my code. For whatever reason, all I had to do was unplug power from the board and then plug it back in, then everything worked as it should! I'm leaving this issue here in case anyone else has this issue. It can be marked as solved though.

I need some help here. I've sort of got this screen working with the GxEPD library, but for some reason anything printed to the epaper display is super hard to see, its just barely visible. Here is my code:

// GxEPD_MinimumExample by Jean-Marc Zingg

#include <GxEPD.h>

// select the display class to use, only one, copy from GxEPD_Example
#include <GxGDE0213B1/GxGDE0213B1.h>      // 2.13" b/w

#include <GxIO/GxIO_SPI/GxIO_SPI.h>
#include <GxIO/GxIO.h>

GxIO_Class io(SPI, /*CS=5*/ SS, /*DC=*/ 17, /*RST=*/ 16); // arbitrary selection of 17, 16
GxEPD_Class display(io, /*RST=*/ 16, /*BUSY=*/ 4); // arbitrary selection of (16), 4

void setup()
{
  display.init();
  display.eraseDisplay();
  // comment out next line to have no or minimal Adafruit_GFX code
  display.drawPaged(drawHelloWorld); // version for AVR using paged drawing, works also on other processors
}

void drawHelloWorld()
{
  display.setTextColor(GxEPD_BLACK);
  display.print("Hello World!");
}

void loop() {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant