The hub module
Board-level singleton exposing every on-hub peripheral. Provided by
the C firmware — the .pyi stub in stubs/hub.pyi is what
Pyright and this documentation consume.
Top-level members
Name |
Description |
|---|---|
Physical ports A–D plus wrapped built-in devices (LED, accelerometer, gyro). See Ports. |
|
Built-in RGB LED as a |
|
Built-in accelerometer as a |
|
Built-in gyroscope as a |
|
Fused IMU attitude, gyro and accel. See IMU. |
|
5-way + power button API. See Buttons. |
|
LCD panel + LVGL init. See LCD. |
|
Shared internal I2C bus (Grove connector + on-board
peripherals). |
|
Board-specific pin/SD constants. See Board constants. |
|
Firmware log level control. |
|
Immediate hardware power-off. |
|
Event decorator injected by the on-device program runner ( |
|
C-level stdout framing hook used by the host protocol. See Host protocol framing. |
Reference
Full generated API: hub.