class documentation

class InfraredStatus:

Constructor: InfraredStatus()

View In Hierarchy

Draw 48px bear frames from SD at 5 fps, keeping only one frame in RAM.

Method __del__ Release animation state held at application exit.
Method __init__ Initialize the receive-status bear animation state.
Method begin Start a receive-state bear animation from its SD asset.
Method draw Draw the current bear frame plus status title, lines, and footer.
Class Variable __slots__ Undocumented
Method _draw_fallback Draw the desktop animation fallback if the bear assets are unavailable.
Method _read_frame Read one 288-byte bear frame from SD, caching only the current frame.
Instance Variable _asset_failed Undocumented
Instance Variable _fallback Undocumented
Instance Variable _frame Undocumented
Instance Variable _frame_count Undocumented
Instance Variable _frame_index Undocumented
Instance Variable _last_draw Undocumented
Instance Variable _loop Undocumented
Instance Variable _path Undocumented
Instance Variable _pixels Undocumented
Instance Variable _started Undocumented
def __del__(self):

Release animation state held at application exit.

def __init__(self):

Initialize the receive-status bear animation state.

def begin(self, state, now):

Start a receive-state bear animation from its SD asset.

Parameters
state:strAnimation name: "listening", "saved", or "no_signal".
now:intCurrent ticks_ms() used to time the 5 fps frames.
def draw(self, view_manager, now, title, lines, footer):

Draw the current bear frame plus status title, lines, and footer.

Parameters
view_manager:ViewManagerThe view manager providing draw, colors, and storage.
now:intCurrent ticks_ms() used for the 5 fps tick.
title:strThe main status title line.
lines:list[str]Up to three detail lines shown below the title.
footer:intUnused parameter kept for the shared status-draw signature.
__slots__: tuple[str, ...] =

Undocumented

def _draw_fallback(self, draw, left, top, foreground):

Draw the desktop animation fallback if the bear assets are unavailable.

Parameters
draw:DrawThe drawing context.
left:intLeft edge of the 48px artwork area.
top:intTop edge of the 48px artwork area.
foreground:intForeground color of the status view.
def _read_frame(self, view_manager, index):

Read one 288-byte bear frame from SD, caching only the current frame.

Parameters
view_manager:ViewManagerThe view manager providing storage.
index:intThe animation frame to read.
Returns
boolTrue if the frame is available, False if loading failed.
_asset_failed: bool =

Undocumented

_fallback =

Undocumented

_frame: bytes =

Undocumented

_frame_count =

Undocumented

_frame_index: int =

Undocumented

_last_draw =

Undocumented

_loop =

Undocumented

_path =

Undocumented

_pixels =

Undocumented

_started =

Undocumented