跳到主要内容
开源智能手表操作系统

ElenixOS

基于 LVGL 与 JerryScript 的嵌入式可穿戴系统,面向资源受限硬件打造 流畅的智能手表体验。

GUILVGL
脚本引擎JerryScript
许可证Apache 2.0

Live preview (JS simulation)

Click Me
Console
No output yet...

Simple button demo

// 获取当前活动 View
const view = eos.view.active();

// 创建一个按钮
const button = new lv.button(view);
button.setSize(180, 64);
button.align(lv.ALIGN_CENTER, 0, 20);

// 添加标签
const label = new lv.label(button);
label.setText('Click Me');
label.center();

// 绑定点击事件
button.addEventCb((e) => {
eos.console.log('Button clicked!');
label.setText('Clicked!');
}, lv.EVENT_CLICKED, null);

WASM for ElenixOS is under development, and the code below has been verified on real hardware.

Runtime事件循环 + UI 调度
Toolkit构建、调试、打包链路

项目亮点

为智能手表而生,为开发者而设计

JS

脚本驱动架构

ElenixOS 采用脚本驱动的应用模型,由 JavaScript 定义 UI 与交互逻辑,由原生代码负责渲染与调度。

LVGL

LVGL + JerryScript 运行时

图形栈由 LVGL 提供能力,表盘与应用统一运行在 JerryScript 引擎之上,保障一致的运行时行为。

MCU

可移植与可扩展

清晰的抽象分层与统一 API,让 ElenixOS 更容易在不同 MCU 与硬件平台之间迁移与复用。

UX

专注可穿戴交互体验

借鉴 Apple Watch 的交互理念,ElenixOS 强调手势流程、动画连贯性与嵌入式界面的信息层级。