BB.NSK.Display.Dashboard (bb_nsk v0.1.2)

Copy Markdown View Source

The panel's main screen: network, robot and system status.

Pure — takes a BB.NSK.Status and returns an Emerge tree, so layouts can be built and checked from the host without hardware.

The panel is 400x300 and drawn with Spleen at its native 8x16, which works out at fifty characters across a full-width line. Where the layout used to be arithmetic over measured text, it is now a tree: a row puts a label beside a value, a filling spacer pushes a decoration to the right margin, and the column divides what is left over between the groups.

Summary

Functions

screen(status)

@spec screen(BB.NSK.Status.t()) :: Emerge.tree()