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

Need some code definitions. #1

Open
griffinmt opened this issue Jan 19, 2023 · 1 comment
Open

Need some code definitions. #1

griffinmt opened this issue Jan 19, 2023 · 1 comment

Comments

@griffinmt
Copy link

griffinmt commented Jan 19, 2023

I am trying to run your watchesp code on my esp32 and gc9a01, although I will use it as a desktop clock. The esp I am using is the Lolin D32 Pro V2 with a builtin tft connector. I have changed the TFT_eSPI setup (200) to match my tft pin connections, but there are numerous other pin assignments in the code which are not explained.
In addition, I will add a BH1750 so I can adjust the screen brightness to match the ambient light and a battery voltage splitter so I can monitor the remaining Lithium Ion capacity.
Can you help me out with this?
And what is the purpose of these uncommented lines?
pinMode(2,OUTPUT);
pinMode(0,INPUT_PULLUP);
pinMode(35,INPUT_PULLUP);
pinMode(13,INPUT_PULLUP);
digitalWrite(2,0);
None of those pins are attached to anything.

TIA

@abhilashdeshmukh
Copy link

My guess is that, he has used those pins before in some other sketch and just forgot to delete here. I removed it and it still worked.

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