b2op-hub-micropython
MicroPython on the B2OP Hub.
This documentation covers the Python programming API exposed to
user scripts running on the hub — the hub and lpf2 modules
and their sub-modules.
More info about the hub: b2op.com.
Getting started
Hub module
- The
hubmodule - Ports
- Hub LED
- IMU
- Buttons
- LCD
- Audio
- I2C (Grove connector)
- Board constants
- Program lifecycle
- Host protocol framing
- Wire format
- Kind table
- Protocol versioning
- Structured payloads
- Streaming transfers
- UPLOAD flow
- READ flow
- CP flow
- ABORT
- MKDIR
- Unknown kinds
- Sequence / response matching
- Fire-and-forget ordering (NO_ACK)
- HELLO lifecycle
- Keepalive ping
- Why the C-level stdout hook
- Transport fan-out
- Interactive frames (0x34–0x35)
- Serial monitor
- Notes
LPF2 module
Reference