module documentation
Decorators for feature availability checks.
| Function | audio |
Decorator to check if Audio is available. |
| Function | bluetooth |
Decorator to check if Bluetooth is available. |
| Function | infrared |
Decorator to check if infrared reception support is available. |
| Function | infrared |
Decorator to check if infrared transmission support is available. |
| Function | keyboard |
Decorator to check if keyboard support is available. |
| Function | native |
Decorator to wrap a function with micropython.native. |
| Function | psram |
Decorator to check if PSRAM is available. |
| Function | server |
Decorator to check if server settings are available. |
| Function | storage |
Decorator to check if storage is available. |
| Function | viper |
Decorator to wrap a function with micropython.viper. |
| Function | wifi |
Decorator to check if WiFi is available. |
Decorator to check if Audio is available.
| Parameters | |
func:callable | The function to decorate. |
| Returns | |
callable | The wrapped function, or a stub that raises when audio is missing. |
| Raises | |
RuntimeError | If the decorated function is called without audio support. |
Decorator to check if Bluetooth is available.
| Parameters | |
func:callable | The function to decorate. |
| Returns | |
callable | The wrapped function, or a stub that raises when Bluetooth is missing. |
| Raises | |
RuntimeError | If the decorated function is called without Bluetooth support. |
Decorator to check if infrared reception support is available.
| Parameters | |
func:callable | The function to decorate. |
| Returns | |
callable | The wrapped function, or a stub that raises when infrared reception is missing. |
| Raises | |
RuntimeError | If the decorated function is called without infrared reception support. |
Decorator to check if infrared transmission support is available.
| Parameters | |
func:callable | The function to decorate. |
| Returns | |
callable | The wrapped function, or a stub that raises when infrared transmission is missing. |
| Raises | |
RuntimeError | If the decorated function is called without infrared transmission support. |
Decorator to check if keyboard support is available.
| Parameters | |
func:callable | The function to decorate. |
| Returns | |
callable | The wrapped function, or a stub that raises when keyboard support is missing. |
| Raises | |
RuntimeError | If the decorated function is called without keyboard support. |
Decorator to wrap a function with micropython.native.
| Parameters | |
func:callable | The function to decorate. |
| Returns | |
callable | The function, wrapped with micropython.native on supported boards. |
Decorator to check if PSRAM is available.
| Parameters | |
func:callable | The function to decorate. |
| Returns | |
callable | The wrapped function, or a stub that raises when PSRAM is missing. |
| Raises | |
RuntimeError | If the decorated function is called without PSRAM support. |
Decorator to check if server settings are available.
| Parameters | |
func:callable | The function to decorate. |
| Returns | |
callable | The wrapped function, or a stub that raises when server settings are missing. |
| Raises | |
RuntimeError | If the decorated function is called without server settings support. |
Decorator to check if storage is available.
| Parameters | |
func:callable | The function to decorate. |
| Returns | |
callable | The wrapped function, or a stub that raises when storage is missing. |
| Raises | |
RuntimeError | If the decorated function is called without SD storage support. |
Decorator to wrap a function with micropython.viper.
| Parameters | |
func:callable | The function to decorate. |
| Returns | |
callable | The function, wrapped with micropython.viper on supported boards. |