_api.statuslight – status light functions API

This module contains the API functions for user interaction with the status light around the main button on the Hub.

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.statuslight._COLORMAP = {'white': 10, 'pink': 1, 'blue': 3, 'yellow': 7, 'orange': 8, 'violet': 2, 'azure': 4, 'red': 9, 'green': 6, 'cyan': 5, 'black': 0}

Dictionary to map from names of colors to their values.

StatusLight Class

class _api.statuslight.StatusLight(???)

???

Methods

on(???)

???

off(???)

???