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 | native |
Decorator to wrap a function with micropython.native. |
| Function | psram |
Decorator to check if PSRAM is 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 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 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. |