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. |
|
Tone synthesis, melody playback, MIDI playback, and raw PCM streaming. See Audio. |
|
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. |
|
Exit the running script cleanly (raises |
|
Stop every button-callback thread still running. See Buttons. |
Reference
Full generated API: hub.