diff --git a/lnpos/100_config.ino b/lnpos/100_config.ino index 5c6cb51..fc39c60 100644 --- a/lnpos/100_config.ino +++ b/lnpos/100_config.ino @@ -164,7 +164,7 @@ void readFiles() secretATM = getValue(lnurlATM, ',', 1); currencyATM = getValue(lnurlATM, ',', 2); Serial.println(""); - Serial.println("lnurlPoS: " + lnurlPoS); + Serial.println("lnurlATM: " + lnurlATM); if (secretATM != "") { menuItemCheck[3] = 1; diff --git a/lnpos/CHANGELOG.md b/lnpos/CHANGELOG.md new file mode 100644 index 0000000..c00f84e --- /dev/null +++ b/lnpos/CHANGELOG.md @@ -0,0 +1,7 @@ +0.1.4 +====== +- Fix typo with logging 'lnurlATM' configuration to serial +- Remove unused WebServer to reduce build time, file size and installation time +- Show a little "arrow" in front of the selected menu item to avoid ambiguity when only 2 menu items are present (or when the user is color blind) +- Make "USB" indicator blue so it looks better and is easier to distinguish +- Show firmware version at boot to allow the user to easily check which version is running (handy for troubleshooting) diff --git a/lnpos/lnpos.ino b/lnpos/lnpos.ino index 88827ad..dbdb14f 100644 --- a/lnpos/lnpos.ino +++ b/lnpos/lnpos.ino @@ -1,21 +1,23 @@ #include -#include #include #include #include -using WebServerClass = WebServer; fs::SPIFFSFS &FlashFS = SPIFFS; #define FORMAT_ON_FAIL true -#include #include #include -#include -#include #include #include "qrcoded.h" -#include "Bitcoin.h" #include +// ArduinoJson, Keypad and uBitcoin should be installed using the Arduino Library Manager. +// The latest versions should work, verified with ArduinoJson 7.2.1, Keypad 3.1.1 and uBitcoin 0.2.0 +#include +#include +#include +#include + +#define VERSION "0.1.4" #define PARAM_FILE "/elements.json" #define KEY_FILE "/thekey.txt" #define USB_POWER 1000 // battery percentage sentinel value to indicate USB power @@ -1121,6 +1123,7 @@ void logo() tft.print("PoS"); tft.setTextColor(TFT_WHITE, TFT_BLACK); tft.setTextSize(2); + tft.print(VERSION); tft.setCursor(0, 80); tft.print("Powered by LNbits"); } @@ -1142,7 +1145,7 @@ void updateBatteryStatus(bool force = false) String batteryPercentageText = ""; if (batteryPercentage == USB_POWER) { - tft.setTextColor(TFT_GREEN, TFT_BLACK); + tft.setTextColor(TFT_BLUE, TFT_BLACK); batteryPercentageText = " USB"; } else @@ -1289,13 +1292,14 @@ void menuLoop() { tft.setTextColor(TFT_GREEN, TFT_BLACK); selection = menuItems[i]; + tft.print("-> "); } else { tft.setTextColor(TFT_WHITE, TFT_BLACK); + tft.print(" "); } - tft.print(" "); tft.println(menuItems[i]); menuItemCount++; }