Skip to content

A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol

small improvement on ui wifi setup

Geod29c45e4b5df
diff --git a/src/Vendors/CardWifiSetup.cpp b/src/Vendors/CardWifiSetup.cpp
index 7ea72c86..67fa6c1a 100644
--- a/src/Vendors/CardWifiSetup.cpp
+++ b/src/Vendors/CardWifiSetup.cpp
@@ -52,15 +52,15 @@ int scanWifiNetworks() {
while (networksCount == 0) {
M5Cardputer.Display.fillScreen(TFT_BLACK);
- M5Cardputer.Display.setTextColor(0x05A3);
+ M5Cardputer.Display.setTextColor(TFT_LIGHTGRAY);
M5Cardputer.Display.setTextSize(1.5);
M5.Lcd.fillRoundRect(20, 20, M5.Lcd.width() - 40, M5.Lcd.height() - 40, 5, 0x0841);
M5.Lcd.drawRoundRect(20, 20, M5.Lcd.width() - 40, M5.Lcd.height() - 40, 5, 0x05A3);
- M5Cardputer.Display.drawString("Scanning Networks...", 28, 60);
+ M5Cardputer.Display.drawString("Scanning Networks...", 32, 60);
networksCount = WiFi.scanNetworks();
if (networksCount == 0) {
- M5Cardputer.Display.drawString("No networks found", 45, 95);
+ M5Cardputer.Display.drawString("No networks found", 45, 85);
delay(2000);
}
}
@@ -131,7 +131,9 @@ bool connectToWifi(String wifiSSID, String wifiPassword) {
WiFi.begin(wifiSSID.c_str(), wifiPassword.c_str());
M5Cardputer.Display.fillScreen(TFT_BLACK);
- M5Cardputer.Display.setTextColor(0x05A3);
+ M5Cardputer.Display.setTextColor(TFT_LIGHTGRAY);
+ M5.Lcd.fillRoundRect(20, 20, M5.Lcd.width() - 40, M5.Lcd.height() - 40, 5, 0x0841);
+ M5.Lcd.drawRoundRect(20, 20, M5.Lcd.width() - 40, M5.Lcd.height() - 40, 5, 0x05A3);
M5Cardputer.Display.drawString("Connecting", 70, 55);
M5Cardputer.Display.setTextColor(TFT_LIGHTGRAY);
M5Cardputer.Display.setCursor(30, 75);
diff --git a/src/Views/M5DeviceView.cpp b/src/Views/M5DeviceView.cpp
index fe1052ff..13209cc0 100644
--- a/src/Views/M5DeviceView.cpp
+++ b/src/Views/M5DeviceView.cpp
@@ -250,6 +250,6 @@ void M5DeviceView::loading() {
M5.Lcd.setTextSize(1.5);
M5.Lcd.fillRoundRect(20, 20, M5.Lcd.width() - 40, M5.Lcd.height() - 40, 5, RECT_COLOR_DARK);
M5.Lcd.drawRoundRect(20, 20, M5.Lcd.width() - 40, M5.Lcd.height() - 40, 5, PRIMARY_COLOR);
- M5.Lcd.setTextColor(PRIMARY_COLOR);
+ M5.Lcd.setTextColor(TEXT_COLOR);
M5.Lcd.drawString("Loading...", 75, 60);
}
\ No newline at end of file