the repo is radiating seeed X1 vibes

This commit is contained in:
liquidraver
2026-08-08 15:19:20 +02:00
parent 17dfa78629
commit 41cc786496
44 changed files with 1420 additions and 127 deletions
+10 -8
View File
@@ -31,6 +31,7 @@ LOG_MODULE_REGISTER(zephcore_main, CONFIG_ZEPHCORE_MAIN_LOG_LEVEL);
#include "ui_mesh_actions.h"
#include "oled_power.h"
#include "led_gate.h"
#include "buzzer_gate.h"
#if IS_ENABLED(CONFIG_ZEPHCORE_UI_BUZZER)
#include "buzzer.h"
#endif
@@ -1506,15 +1507,16 @@ int main(void)
LOG_INF("offgrid mode: %s (from prefs)",
companion_mesh.prefs.client_repeat ? "on" : "off");
/* Restore buzzer mute state from persisted prefs, then play
* startup chime only if buzzer is not muted.
* buzzer_init() defaults to quiet=true, so we must always
* call buzzer_set_quiet() to apply the saved preference. */
/* Restore the notification mode from persisted prefs, then play the
* startup chime only if sound is on. buzzer_init() defaults to
* quiet=true, so the saved preference must always be applied. */
#if IS_ENABLED(CONFIG_ZEPHCORE_UI_BUZZER)
buzzer_set_quiet(companion_mesh.prefs.buzzer_quiet);
ui_set_buzzer_quiet(companion_mesh.prefs.buzzer_quiet);
LOG_INF("buzzer: quiet=%s (from prefs)",
companion_mesh.prefs.buzzer_quiet ? "true" : "false");
{
uint8_t bmode = zephcore_buzzer_mode_from_prefs(companion_mesh.prefs.buzzer_quiet);
zephcore_buzzer_set_mode(bmode, false);
ui_set_buzzer_mode(bmode);
LOG_INF("buzzer: mode=%u (from prefs)", bmode);
}
ui_play_startup_chime();
#endif
+4
View File
@@ -422,6 +422,10 @@ static uint16_t get_battery_mv(void)
/* LR1110 via Zephyr LoRa driver */
static const struct device *const lora_dev = DEVICE_DT_GET(DT_ALIAS(lora0));
static mesh::LR1110Radio lora_radio(lora_dev, zephyr_board);
#elif IS_ENABLED(CONFIG_ZEPHCORE_RADIO_LR2021)
/* LR2021 via Zephyr LoRa driver */
static const struct device *const lora_dev = DEVICE_DT_GET(DT_ALIAS(lora0));
static mesh::LR2021Radio lora_radio(lora_dev, zephyr_board);
#elif IS_ENABLED(CONFIG_ZEPHCORE_RADIO_SX127X)
/* SX127x via Zephyr loramac-node driver */
static const struct device *const lora_dev = DEVICE_DT_GET(DT_ALIAS(lora0));
+4
View File
@@ -356,6 +356,10 @@ static uint16_t get_battery_mv(void)
/* LR1110 via Zephyr LoRa driver */
static const struct device *const lora_dev = DEVICE_DT_GET(DT_ALIAS(lora0));
static mesh::LR1110Radio lora_radio(lora_dev, zephyr_board);
#elif IS_ENABLED(CONFIG_ZEPHCORE_RADIO_LR2021)
/* LR2021 via Zephyr LoRa driver */
static const struct device *const lora_dev = DEVICE_DT_GET(DT_ALIAS(lora0));
static mesh::LR2021Radio lora_radio(lora_dev, zephyr_board);
#elif IS_ENABLED(CONFIG_ZEPHCORE_RADIO_SX127X)
/* SX127x via Zephyr loramac-node driver */
static const struct device *const lora_dev = DEVICE_DT_GET(DT_ALIAS(lora0));