feat(rk3588s): unify display state semantics and bump version to 1.4.5
This commit is contained in:
@@ -36,19 +36,19 @@ class StatusLed {
|
||||
|
||||
class Display {
|
||||
showAP() {
|
||||
if (writeLvglCommand('show_text:AP')) {
|
||||
log.info('display', '显示屏 → AP');
|
||||
if (writeLvglCommand('show_ap')) {
|
||||
log.info('display', '显示屏 → AP(闪烁)');
|
||||
}
|
||||
}
|
||||
|
||||
showConn() {
|
||||
if (writeLvglCommand('show_text:Conn')) {
|
||||
log.info('display', '显示屏 → Conn');
|
||||
if (writeLvglCommand('show_conn')) {
|
||||
log.info('display', '显示屏 → Conn(闪烁)');
|
||||
}
|
||||
}
|
||||
|
||||
showErr0() {
|
||||
if (writeLvglCommand('show_text:Err0')) {
|
||||
if (writeLvglCommand('show_err0')) {
|
||||
log.info('display', '显示屏 → Err0');
|
||||
}
|
||||
}
|
||||
@@ -61,8 +61,8 @@ class Display {
|
||||
|
||||
showPin(pin) {
|
||||
const s = String(pin || '').padStart(4, '0').slice(-4);
|
||||
if (writeLvglCommand(`show_text:${s}`)) {
|
||||
log.info('display', `显示屏 → PIN: ${s}`);
|
||||
if (writeLvglCommand(`show_pin:${s}`)) {
|
||||
log.info('display', `显示屏 → PIN: ${s}(闪烁)`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user