From 7ba6c9dc746aa49affee28939cae1d7252d8c9bb Mon Sep 17 00:00:00 2001 From: elmo128 <60213508+elmo128@users.noreply.github.com> Date: Fri, 15 Sep 2023 09:40:43 +0200 Subject: [PATCH] update readme add tripple click option --- README.md | 15 +++++++++++++-- src/NerdMinerV2.ino.cpp | 1 + src/wManager.cpp | 1 - 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e8a2769..47928d6 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ Every time an stratum job notification is received miner update its current work - ESP32-WROOM-32, ESP32-Devkit1.. ([Aliexpress link*](https://s.click.aliexpress.com/e/_DCzlUiX)) - ESP32-cam [Board Info](https://lastminuteengineers.com/getting-started-with-esp32-cam/) +* affiliate link + ### Flash firmware #### microMiners Flashtool [Recommended] Easyiest way to flash firmware. Build your own miner using the folowing firwmare flash tool: @@ -92,7 +94,7 @@ After programming, you will only need to setup your Wifi and BTC address. "Timezone": 2 } 1. Insert the SD card. -1. Hold down the "reset configurations" button as described below or power up without settings in your nvmemory. +1. Hold down the "reset configurations" button as described below to reset the configurations and/or boot without settings in your nvmemory. 1. Power down to remove the SD card. It is not needed for mining. #### Pool selection @@ -115,6 +117,15 @@ Other standard pools not compatible with low difficulty share: | eu.stratum.slushpool.com | 3333 | https://braiins.com/pool | ### Buttons + +#### One button devices: + +- One click > change screen. +- Double click > change screen orientation. +- Tripple click > turn the screen off and on again. +- Hold 5 seconds > **reset the configurations and reboot** your NerdMiner. + +#### Two button devices: With the USB-C port to the right: **TOP BUTTON** @@ -162,6 +173,6 @@ With the USB-C port to the right: - [ ] Add support to control BM1397 ### Donations/Project contributions -If you would like to contribute and help dev team with this project you can send a donation to the following LN address ⚡teamnerdminer@getalby.com⚡ or use the affiliate links(*) above. +If you would like to contribute and help dev team with this project you can send a donation to the following LN address ⚡teamnerdminer@getalby.com⚡ Enjoy diff --git a/src/NerdMinerV2.ino.cpp b/src/NerdMinerV2.ino.cpp index 9ee202e..8144dcf 100644 --- a/src/NerdMinerV2.ino.cpp +++ b/src/NerdMinerV2.ino.cpp @@ -58,6 +58,7 @@ void setup() button1.attachClick(switchToNextScreen); button1.attachDoubleClick(alternateScreenRotation); button1.attachLongPressStart(reset_configuration); + if(button1.getNumberClicks() == 3) alternateScreenState(); #endif #if defined(PIN_BUTTON_1) && defined(PIN_BUTTON_2) //Button 1 of two button device diff --git a/src/wManager.cpp b/src/wManager.cpp index 1a3ef66..f9b6a1d 100644 --- a/src/wManager.cpp +++ b/src/wManager.cpp @@ -76,7 +76,6 @@ void init_WifiManager() // Check if button2 is pressed to enter configMode with actual configuration if (!digitalRead(PIN_BUTTON_2)) { Serial.println(F("Button pressed to force start config mode")); - reset_configuration(); forceConfig = true; wm.setBreakAfterConfig(true); //Set to detect config edition and save }