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

Where to find the original example, that is running on the ATOM Display, when shipped? #30

Open
Fischkopppp opened this issue Mar 25, 2022 · 5 comments

Comments

@Fischkopppp
Copy link

Hi, thank you for the great work. I am looking for the original example, that is running on the ATOM Display after first startup. I am interested in the PDQ graphicstest part, as it supports for example roundRects. I have a few existing codes, that I would like to run on the ATOM Display, however they are built on the TFT_eSPI library. For my understanding I am able to use TFT_eSPI functions by adding:

#include <LGFX_TFT_eSPI.hpp>
//#include <TFT_eSPI.h>

However I was not successful to get this running, or even compiling. This is why I thought I could understand how to do it, with the original example, that is running on the Atom Display, as I can see that is basically running the TFT_graphicstest_PDQ.ino example.

Thank you for any help or suggestions.

lovyan03 added a commit that referenced this issue Mar 26, 2022
@lovyan03
Copy link
Collaborator

@Fischkopppp
Thank you for your report, I have added the sample in the develop branch.
It will take a few days to be reflected in the master branch and release, but if you want to try it immediately, please get it from the develop branch.

M5GFX encapsulates the LovyanGFX core, but LGFX_TFT_eSPI.hpp is not available.
To use AtomDisplay, do the following

#include <M5AtomDisplay.h>
M5AtomDisplay display;

void setup(void)
{
  display.init();

  /// Use a function to draw something.
  display.fillRect(10, 20, 30, 40, TFT_BLUE);
}

@Fischkopppp
Copy link
Author

Thank you for the reply! Are you planning to add LGFX_TFT_eSPI.hpp in the future?
I will try the example from the develop branch.

@lovyan03
Copy link
Collaborator

@Fischkopppp
sorry. There are no plans to add the same functionality as LGFX_TFT_eSPI to M5GFX.
If you look at the contents of the file, you will see that I have only simple constant definitions.
I recommend that you copy and use only those parts of the file that you need for your project, if necessary.

@Fischkopppp
Copy link
Author

Fischkopppp commented Mar 27, 2022

@lovyan03
thank you for the quick reply. I added fillSmoothRoundRect and fillSmoothCircle to LGFXBase.cpp and LGFXBase.hpp, this way the project is compiling now. I just copied the code from fillRoundRect / fillCircle.

I recommend that you copy and use only those parts of the file that you need for your project, if necessary.

Do you mean to simply use the LGFX_TFT_eSPI.hpp part in my projects? I will try that, too.

By the way. Those smooth functions are really nice. Maybe you will add those features later from TFT_eSPI? On a big screen they would help a lot to make nice looking graphics.

@lovyan03
Copy link
Collaborator

@Fischkopppp
wow... I was not aware that fillSmoothRoundRect and fillSmoothCircle had been added.
I will consider adopting them. thank you !

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

2 participants