Skip to content

Need some code definitions. #1

@griffinmt

Description

@griffinmt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions