_api.app – application functions API¶
This module contains the API functions for user interaction with the controlling application (i.e. computer or phone).
This module is imported by the mindstorms – Mindstorms branding of the user API and spike – Spike Prime branding of the user API modules so that the API can be branded appropriately in documentation (i.e. so that Mindstorms docs can tell you to import mindstorms, and Spike Prime docs can tell you to import spike).
Constants¶
- _api.app._NOT_CONNECTED_ERROR = The programming app is not connected to the hub.¶
Error text for when the app and the hub have become disconnected.
App Class¶
Imports¶
Function
utime.ticks_diffFunction
utime.ticks_msConstant
util.constants.BT_VCP= BT_VCP(0)Constant
util.constants.USB_VCP= USB_VCP(0)