Skip to content

[Question] Support for the RST and IO36 button on the TTGO VGA32 v1.4 #113

@guidol70

Description

@guidol70

I recognized that your PC-Emulator does work (will do a Reset) if the RST-Button under the Keyboard-connector is pressed and I did see/read that you are using GPIO12 for preferences.clear with the ANSI-Terminal sketch.

Also I did understand/read that GPIO12 shouldnt be used when the MicroSD-Card is in use (or is this only GPIO02?) because of the boot-init/flash-voltage.

So my Questions:
Is the RST-Button GPIO12? Or how (when you didit program) did you get the RST-Button working for the PC-Emulator?

If RST is GPIO12 I couldnt/shlouldnt use it. Then I would support the secind button (GP)IO36 under the Mouse.Connector.

But my follwing (shorted) code didnt work :( It seems that the sketch (based on a older ANSI-Terminal-sketch) never execute/reach the "void loop":

#define RESET_PIN 36

void setup(void)	{
   pinMode(RESET_PIN, INPUT);
					}

void loop(void) 	{
  if (digitalRead(RESET_PIN) == 1)
     _reboot;
					}

I have "successful" tested (GP)IO36 in the "void setup" section - that means I had to press IO36 to complete the execution of the "void setup" section.

Could you please give me a hint where I can put such a reset-routine?

PS: _reboot is my own defined reboot function (some display/sound/countdown) ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions