_api.large_technic_hub – central hub API

This module contains the specific instances of other API classes for user interaction with various aspects of the central hub brick.

The class in this module is superclassed by the mindstorms.MSHub and spike.PrimeHub classes 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).

LargeTechnicHub Class

class _api.large_technic_hub.LargeTechnicHub(???)

???

Properties

property status_light

???

property light_matrix

???

property left_button

???

property right_button

???

property motion_sensor

???

property speaker

???

Constants

PORT_A = A
PORT_B = B
PORT_C = C
PORT_D = D
PORT_E = E
PORT_F = F

Constants to specify specific ports on the Hub.

_status_light

A reference to the specific _api.statuslight.StatusLight object representing the status light under the main button on the Hub.

_light_matrix

A reference to the specific _api.lightmatrix.LightMatrix object representing the 5x5 display on the Hub.

_left_button

A reference to the specific _api.button.Button object representing the left button on the Hub.

_right_button

A reference to the specific _api.button.Button object representing the right button on the Hub.

_motion_sensor

A reference to the specific _api.motionsensor.MotionSensor object representing the motion sensor in the Hub.

_speaker

A reference to the specific _api.speaker.Speaker object representing the speaker in the Hub.