Skip to content

Expose display_rotation pref over cmd_frame for companion-app UI #2395

@chrisfore

Description

@chrisfore

PR #2393 adds NodePrefs.display_rotation (0–3) and exposes it via the text CLI. This works cleanly for companion_radio_ble builds (USB Serial is free) but has a UX gap on companion_radio_usb builds, where USB Serial is dedicated to the binary cmd_frame protocol and text CLI is only reachable via the CLI rescue mechanism (long-press USER button within 8 seconds of boot).

A new cmd_frame opcode pair (get/set display_rotation) would let the companion phone app toggle rotation from a settings UI, removing the rescue-mode workaround for USB users and giving BLE-only users a way to change it at all (they currently have no path).

The firmware-side pref and storage are already in place after #2393 merges — the missing pieces are:

  • New opcode(s) in examples/companion_radio/MyMesh.cpp handleCmdFrame
  • Matching UI in the companion phone-app repo(s)

Filing this to preserve the link and give the phone-app team a concrete field to wire up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions