-
-
Notifications
You must be signed in to change notification settings - Fork 245
Description
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) ;)