Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

InkHUD Menu improvements#8975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
HarukiToreda wants to merge21 commits intodevelop
base:develop
Choose a base branch
Loading
fromInkHUD-Improvements
Draft
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
21 commits
Select commitHold shift + click to select a range
87114f4
InkHUD: Region Picker on initial setup
HarukiToredaDec 14, 2025
d9dab0c
Added Node Config menu with Lora Region Picker
HarukiToredaDec 14, 2025
cd0843c
Role picker
HarukiToredaDec 14, 2025
60389e8
Preset Picker
HarukiToredaDec 14, 2025
7b43154
Timezone picker added
HarukiToredaDec 14, 2025
a332ca9
Power save mode and bluetooth configs
HarukiToredaDec 15, 2025
5f9a6a3
Config section Headers
HarukiToredaDec 15, 2025
6e05c55
Channel Config
HarukiToredaDec 15, 2025
bd18a17
Cleaning some behavior
HarukiToredaDec 15, 2025
5acf722
Add back to all Options
HarukiToredaDec 15, 2025
83ec371
Display config added
HarukiToredaDec 15, 2025
96e82f1
Merge branch 'develop' into InkHUD-Improvements
HarukiToredaDec 15, 2025
958e1f7
Position Toggle added
HarukiToredaDec 16, 2025
cc6265e
Network Config for ESP32
HarukiToredaDec 16, 2025
929aa5c
Wifi details
HarukiToredaDec 16, 2025
c761444
Reduce line spacing to fit more content
HarukiToredaDec 16, 2025
1d4e295
Recent list with checkboxes
HarukiToredaDec 16, 2025
ac05337
Timezone labels easier to understand
HarukiToredaDec 16, 2025
66d9c43
Trunk fix
HarukiToredaDec 16, 2025
ef36a5a
Added "Saving Changes" screen when reboot is needed
HarukiToredaDec 17, 2025
b3e6731
Trunk fix
HarukiToredaDec 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Network Config for ESP32
  • Loading branch information
@HarukiToreda
HarukiToreda committedDec 16, 2025
commitcc6265e9b1b11e7c3a5136b0fa65799b004c9a1d
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -107,6 +107,7 @@ enum MenuAction {
TOGGLE_CHANNEL_POSITION,
SET_CHANNEL_PRECISION,
TOGGLE_DISPLAY_UNITS,
TOGGLE_WIFI,
};

} // namespace NicheGraphics::InkHUD
Expand Down
39 changes: 35 additions & 4 deletionssrc/graphics/niche/InkHUD/Applets/System/Menu/MenuApplet.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -379,19 +379,31 @@ void InkHUD::MenuApplet::execute(MenuItem item)
LOG_INFO("Enabling Bluetooth");
config.network.wifi_enabled = false;
config.bluetooth.enabled = true;
nodeDB->saveToDisk();
nodeDB->saveToDisk(SEGMENT_CONFIG);
rebootAtMsec = millis() + 2000;
break;

// Power
case TOGGLE_POWER_SAVE:
// Power / Network (ESP32-only)
#if defined(ARCH_ESP32)
case TOGGLE_POWER_SAVE:
config.power.is_power_saving = !config.power.is_power_saving;
nodeDB->saveToDisk(SEGMENT_CONFIG);
rebootAtMsec = millis() + DEFAULT_REBOOT_SECONDS * 1000;
#endif
break;

case TOGGLE_WIFI:
config.network.wifi_enabled = !config.network.wifi_enabled;

if (config.network.wifi_enabled) {
// Switch behavior: WiFi ON forces Bluetooth OFF
config.bluetooth.enabled = false;
}

nodeDB->saveToDisk(SEGMENT_CONFIG);
rebootAtMsec = millis() + DEFAULT_REBOOT_SECONDS * 1000;
break;
#endif

// Display
case TOGGLE_DISPLAY_UNITS:
if (config.display.units == meshtastic_Config_DisplayConfig_DisplayUnits_IMPERIAL)
Expand All@@ -405,6 +417,12 @@ void InkHUD::MenuApplet::execute(MenuItem item)
// Bluetooth
case TOGGLE_BLUETOOTH:
config.bluetooth.enabled = !config.bluetooth.enabled;

if (config.bluetooth.enabled) {
// Switch behavior: Bluetooth ON forces WiFi OFF
config.network.wifi_enabled = false;
}

nodeDB->saveToDisk(SEGMENT_CONFIG);
rebootAtMsec = millis() + DEFAULT_REBOOT_SECONDS * 1000;
break;
Expand DownExpand Up@@ -791,7 +809,9 @@ void InkHUD::MenuApplet::showPage(MenuPage page)

#if defined(ARCH_ESP32)
items.push_back(MenuItem("Power", MenuPage::NODE_CONFIG_POWER));
items.push_back(MenuItem("Network", MenuPage::NODE_CONFIG_NETWORK));
#endif

items.push_back(MenuItem("Display", MenuPage::NODE_CONFIG_DISPLAY));
items.push_back(MenuItem("Bluetooth", MenuPage::NODE_CONFIG_BLUETOOTH));
items.push_back(MenuItem("Exit", MenuPage::EXIT));
Expand DownExpand Up@@ -840,6 +860,17 @@ void InkHUD::MenuApplet::showPage(MenuPage page)
items.push_back(MenuItem("Exit", MenuPage::EXIT));
break;
}

case NODE_CONFIG_NETWORK: {
items.push_back(MenuItem("Back", MenuAction::BACK, MenuPage::NODE_CONFIG));

const char *wifiLabel = config.network.wifi_enabled ? "WiFi: On" : "WiFi: Off";

items.push_back(MenuItem(wifiLabel, MenuAction::TOGGLE_WIFI, MenuPage::EXIT));

items.push_back(MenuItem("Exit", MenuPage::EXIT));
break;
}
#endif
case NODE_CONFIG_DISPLAY: {
items.push_back(MenuItem("Back", MenuAction::BACK, MenuPage::NODE_CONFIG));
Expand Down
2 changes: 2 additions & 0 deletionssrc/graphics/niche/InkHUD/Applets/System/Menu/MenuPage.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,8 +29,10 @@ enum MenuPage : uint8_t {
NODE_CONFIG_DEVICE,
NODE_CONFIG_DEVICE_ROLE,
NODE_CONFIG_POWER,
NODE_CONFIG_NETWORK,
NODE_CONFIG_DISPLAY,
NODE_CONFIG_BLUETOOTH,
NODE_CONFIG_POSITION,
TIMEZONE,
APPLETS,
AUTOSHOW,
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp