Infrared - Send and learn infrared remote signals.
| Class | |
Fit the built-in desktop animation into the 48px status artwork area. |
| Class | |
Draw 48px bear frames from SD at 5 fps, keeping only one frame in RAM. |
| Function | run |
Run the infrared app. |
| Function | start |
Start the infrared app. |
| Function | stop |
Stop the infrared app and clean up resources. |
| Constant | FIELD |
Undocumented |
| Constant | FIELD |
Undocumented |
| Constant | RECEIVE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Function | _clean |
Normalize a user-provided remote filename. |
| Function | _close |
Close the Learn keyboard and return to its menu. |
| Function | _close |
Release receive IRQ/timer resources on every exit path. |
| Function | _create |
Create a styled menu for the current view. |
| Function | _display |
Limit a Learn field value to one menu line. |
| Function | _draw |
Draw the current receive-state title, details, and hint footer. |
| Function | _keyboard |
Record that the Learn keyboard saved a value. |
| Function | _load |
Load the saved transmitter settings. |
| Function | _open |
Open the toggle that enables external transmission. |
| Function | _open |
Open the keyboard for a Learn field. |
| Function | _open |
Open the transmitter pin choice list. |
| Function | _rebuild |
Rebuild the Infrared facade for the current pin settings. |
| Function | _receive |
Start reception and return so animation and input remain responsive. |
| Function | _relative |
Convert a library path to a root-relative remote path. |
| Function | _remote |
Return the storage path for the current learned remote. |
| Function | _run |
Handle one frame of external toggle input. |
| Function | _run |
Process one frame of Learn keyboard input. |
| Function | _run |
Handle one frame of pin choice input. |
| Function | _run |
Handle one frame of receive input and advance the receive state. |
| Function | _save |
Apply the value saved from the Learn keyboard. |
| Function | _save |
Persist the transmitter settings. |
| Function | _send |
Transmit the selected signal from the loaded remote. |
| Function | _set |
Switch to a receive state and start the matching bear animation. |
| Function | _show |
Show standard and custom signal-name choices. |
| Function | _show |
Load a remote and show its signal names. |
| Function | _show |
Show the fields and action for learning a remote. |
| Function | _show |
Show the top-level infrared menu. |
| Function | _show |
List available infrared remote files. |
| Function | _show |
Show the transmitter settings menu. |
| Constant | _BUTTON |
Undocumented |
| Constant | _PIN |
Undocumented |
| Constant | _SETTINGS |
Undocumented |
| Variable | _button |
Undocumented |
| Variable | _button |
Undocumented |
| Variable | _infrared |
Undocumented |
| Variable | _key |
Undocumented |
| Variable | _key |
Undocumented |
| Variable | _keyboard |
Undocumented |
| Variable | _keyboard |
Undocumented |
| Variable | _keyboard |
Undocumented |
| Variable | _learn |
Undocumented |
| Variable | _menu |
Undocumented |
| Variable | _pin |
Undocumented |
| Variable | _receive |
Undocumented |
| Variable | _receive |
Undocumented |
| Variable | _receiver |
Undocumented |
| Variable | _remote |
Undocumented |
| Variable | _remote |
Undocumented |
| Variable | _remote |
Undocumented |
| Variable | _remote |
Undocumented |
| Variable | _settings |
Undocumented |
| Variable | _status |
Undocumented |
| Variable | _toggle |
Undocumented |
| Variable | _tx |
Undocumented |
| Variable | _use |
Undocumented |
Run the infrared app.
| Parameters | |
viewViewManager | The view manager providing buttons and input state. |
Start the infrared app.
| Parameters | |
viewViewManager | The view manager providing storage and drawing. |
| Returns | |
bool | True after the app is initialized. |
Stop the infrared app and clean up resources.
| Parameters | |
viewViewManager | The view manager providing keyboard state. |
Normalize a user-provided remote filename.
| Parameters | |
value:str | The remote name entered on the keyboard. |
| Returns | |
str | The sanitized name, or an empty string if unusable. |
Close the Learn keyboard and return to its menu.
| Parameters | |
viewViewManager | The view manager providing keyboard and input state. |
Create a styled menu for the current view.
| Parameters | |
viewViewManager | The view manager providing colors and size. |
title:str | The menu title. |
| Returns | |
Menu | The styled menu bound to the current view. |
Limit a Learn field value to one menu line.
| Parameters | |
value:str | The field value to display. |
| Returns | |
str | The value truncated to 18 characters. |
Draw the current receive-state title, details, and hint footer.
| Parameters | |
viewViewManager | The view manager the bear animation draws through. |
now:int | Current ticks_ms() used for the 5 fps tick. |
Record that the Learn keyboard saved a value.
| Parameters | |
result:str | The value the user committed on the keyboard. |
Load the saved transmitter settings.
| Parameters | |
viewViewManager | The view manager providing storage. |
Open the toggle that enables external transmission.
| Parameters | |
viewViewManager | The view manager for drawing and colors. |
Open the keyboard for a Learn field.
| Parameters | |
viewViewManager | The view manager providing the keyboard. |
field:int | The field to edit (FIELD_BUTTON or FIELD_NAME). |
Open the transmitter pin choice list.
| Parameters | |
viewViewManager | The view manager for drawing and colors. |
Rebuild the Infrared facade for the current pin settings.
| Parameters | |
viewViewManager | The view manager providing storage. |
Start reception and return so animation and input remain responsive.
| Parameters | |
viewViewManager | The view manager for alerts, drawing, and logging. |
Convert a library path to a root-relative remote path.
| Parameters | |
path:str | The remote path from the infrared library. |
| Returns | |
str | The path without the "infrared/" prefix. |
Return the storage path for the current learned remote.
| Returns | |
str | The "learned/<remote name>.ir" storage path. |
Handle one frame of external toggle input.
| Parameters | |
viewViewManager | The view manager providing buttons. |
Process one frame of Learn keyboard input.
| Parameters | |
viewViewManager | The view manager providing keyboard and input state. |
Handle one frame of pin choice input.
| Parameters | |
viewViewManager | The view manager providing buttons. |
Handle one frame of receive input and advance the receive state.
| Parameters | |
viewViewManager | The view manager for buttons, alerts, drawing, and logging. |
Apply the value saved from the Learn keyboard.
| Parameters | |
viewViewManager | The view manager providing the keyboard result and alerts. |
Persist the transmitter settings.
| Parameters | |
viewViewManager | The view manager providing storage. |
Transmit the selected signal from the loaded remote.
| Parameters | |
viewViewManager | The view manager for alerts and drawing. |
Switch to a receive state and start the matching bear animation.
| Parameters | |
viewViewManager | The view manager the bear animation draws through. |
state:int | The receive state to enter (STATE_LISTENING, STATE_SAVED, ...). |
now:int | Current ticks_ms() used to time the animation. |
error:str | Error message shown in the STATE_RECEIVE_ERROR state. Defaults to "". |
Show standard and custom signal-name choices.
| Parameters | |
viewViewManager | The view manager for drawing and input. |
Load a remote and show its signal names.
| Parameters | |
viewViewManager | The view manager for drawing and alerts. |
path:str | The root-relative .ir file path to load. |
Show the fields and action for learning a remote.
| Parameters | |
viewViewManager | The view manager for drawing and input. |
Show the top-level infrared menu.
| Parameters | |
viewViewManager | The view manager for drawing and input. |
List available infrared remote files.
| Parameters | |
viewViewManager | The view manager for drawing and storage access. |
Show the transmitter settings menu.
| Parameters | |
viewViewManager | The view manager for drawing and input. |