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

Add Hello World example #15

Merged
merged 4 commits into from
Jan 15, 2023
Merged

Add Hello World example #15

merged 4 commits into from
Jan 15, 2023

Conversation

cimm
Copy link
Contributor

@cimm cimm commented Jan 14, 2023

I wrote a super simple, minimal "Hello World" example to get started quickly. The included examples are nice demos but they all require network access and I wanted the simplest program to show something on the screen as fast as possible to get started. Maybe this could be useful to others?

This is the simplest sketch I could come up with, but there might be better solutions. Let me know if I can improve.


/* Print text to display */
GxEPD2_GFX& display = Paperdink.epd;
display.setTextColor(GxEPD_WHITE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of creating a new display. Would you mind keeping it as Paperdink.epd.setTextColor(GxEPD_BLACK) for all the other display operations too.

Copy link
Contributor Author

@cimm cimm Jan 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if I understand this, but I changed what I think you explained. By setting Paperdink.epd.setTextColor(GxEPD_BLACK) I set the text color for all screens to black, not only for the display instance, correct?

examples/Hello_World/Hello_World.ino Show resolved Hide resolved
@cimm
Copy link
Contributor Author

cimm commented Jan 15, 2023

@rgujju Thank you for the feedback! I think I changed what's needed, if not, let me know.

@rgujju rgujju merged commit 47972ea into paperdink:main Jan 15, 2023
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

Successfully merging this pull request may close these issues.

2 participants