QOL Changes

This tool is getting better and better every day, i wanted to add this changes few days ago to make it easier to navigate through menus
This commit is contained in:
IMXNOOBX 2023-11-14 20:11:51 +01:00
parent 0ac331549c
commit 24fbf6a739
2 changed files with 66 additions and 26 deletions

38
.gitignore vendored Normal file
View File

@ -0,0 +1,38 @@
# Visual Studio Code
.vscode/
# Prerequisites
build/
# Prerequisites
*.d
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Precompiled Headers
*.gch
*.pch
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Fortran module files
*.mod
*.smod
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exe
*.out
*.app

View File

@ -11,18 +11,6 @@ String buildver="2.0.0rc1";
#define BGCOLOR BLACK
#define FGCOLOR GREEN
struct QRCODE {
char name[19];
String url;
};
QRCODE qrcodes[] = {
{ "Rickroll", "https://youtu.be/dQw4w9WgXcQ"},
{ "HackerTyper", "https://hackertyper.net/"},
{ "ZomboCom", "https://html5zombo.com/"},
{ "Back", "" },
};
#if defined(STICK_C_PLUS)
#include <M5StickCPlus.h>
#define BIG_TEXT 4
@ -118,6 +106,18 @@ struct MENU {
// 17 - Bluetooth Maelstrom
// 18 - QR Codes
struct QRCODE {
char name[19];
String url;
};
QRCODE qrcodes[] = {
{ "Back", "" },
{ "Rickroll", "https://youtu.be/dQw4w9WgXcQ"},
{ "HackerTyper", "https://hackertyper.net/"},
{ "ZomboCom", "https://html5zombo.com/"},
};
bool isSwitching = true;
#if defined(RTC)
int current_proc = 0; // Start in Clock Mode
@ -270,13 +270,13 @@ void mmenu_loop() {
/// Dimmer MENU ///
MENU dmenu[] = {
{ "Back", screen_dim_time},
{ "5 seconds", 5},
{ "10 seconds", 10},
{ "15 seconds", 15},
{ "20 seconds", 20},
{ "25 seconds", 25},
{ "30 seconds", 30},
{ "Back", screen_dim_time},
};
void dmenu_drawmenu() {
@ -355,6 +355,7 @@ void mmenu_loop() {
/// SETTINGS MENU ///
MENU smenu[] = {
{ "Back", 1},
#if defined(AXP)
{ "Battery Info", 6},
{ "Brightness", 4},
@ -369,7 +370,6 @@ MENU smenu[] = {
#if defined(USE_EEPROM)
{ "Clear Settings", 99},
#endif
{ "Back", 1},
};
void smenu_drawmenu() {
@ -417,9 +417,9 @@ int rotation = 1;
#if defined(ROTATION)
/// Rotation MENU ///
MENU rmenu[] = {
{ "Back", rotation},
{ "Right", 1},
{ "Left", 3},
{ "Back", rotation},
};
void rmenu_drawmenu() {
@ -537,6 +537,7 @@ void tvbgone_loop()
/// TVBG-Region MENU ///
MENU tvbgmenu[] = {
{ "Back", 3},
{ "Americas / Asia", 0},
{ "EU/MidEast/Africa", 1},
};
@ -573,6 +574,14 @@ void tvbgmenu_loop() {
}
if (check_select_press()) {
region = tvbgmenu[cursor].command;
if (region == 3) {
current_proc = 1;
isSwitching = true;
rstOverride = false;
return;
}
#if defined(USE_EEPROM)
EEPROM.write(3, region);
EEPROM.commit();
@ -756,11 +765,11 @@ void sendAllCodes()
/// Bluetooth Spamming ///
/// BTSPAM MENU ///
MENU btmenu[] = {
{ "Back", 4},
{ "AppleJuice", 0},
{ "Swift Pair", 1},
{ "SourApple Crash", 2},
{ "BT Maelstrom", 3},
{ "Back", 4}
};
void btmenu_drawmenu() {
@ -841,6 +850,7 @@ void btmenu_loop() {
}
MENU ajmenu[] = {
{ "Back", 29},
{ "AirPods", 1},
{ "Transfer Number", 27},
{ "AirPods Pro", 2},
@ -869,7 +879,6 @@ MENU ajmenu[] = {
{ "AppleTV Network", 25},
{ "TV Color Balance", 26},
{ "Setup New Phone", 28},
{ "Back", 29},
};
void aj_drawmenu() {
@ -1274,11 +1283,11 @@ void btmaelstrom_loop(){
/// WIFI MENU ///
MENU wsmenu[] = {
{ "Back", 4},
{ "Scan Wifi", 0},
{ "Spam Funny", 1},
{ "Spam Rickroll", 2},
{ "Spam Random", 3},
{ "Back", 4},
};
void wsmenu_drawmenu() {
@ -1412,14 +1421,7 @@ void wscan_result_loop(){
DISP.setTextSize(SMALL_TEXT);
DISP.printf("Chan : %d\n", WiFi.channel(cursor));
DISP.printf("Crypt: %s\n", encryptType);
DISP.printf("BSSID:\n %02x:%02x:%02x:%02x:%02x:%02x\n",
WiFi.BSSID(i)[0],
WiFi.BSSID(i)[1],
WiFi.BSSID(i)[2],
WiFi.BSSID(i)[3],
WiFi.BSSID(i)[4],
WiFi.BSSID(i)[5]
);
DISP.print("BSSID:\n" + WiFi.BSSIDstr(i));
DISP.printf("\nNext: Back\n");
}
}