Examples organized by complexity. Test I²C bus with scanner first.
core_usage/ — Learn CRUMBS basics without complexity
- Direct API usage (no handlers)
- Simple message sending/receiving
- Basic peripheral/controller patterns
- Self-contained sketches
Start here if you're new to CRUMBS.
handlers_usage/ — Learn callback registration pattern
- Handler registration via
crumbs_register_handler() - Command routing demonstration
- SET_REPLY mechanism usage
- Mock device (no hardware complexity)
Move here after understanding the basics.
families_usage/ — Real-world multi-module coordination
- Canonical operation headers
- Multiple device types coordinated
- Physical I²C communication
- Linux controller with discovery
For advanced users building complete systems.
| Platform | Tier 1 | Tier 2 | Tier 3 |
|---|---|---|---|
| Arduino | ✓ 8 examples | — | — |
| PlatformIO | ✓ 2 examples | ✓ 2 examples | ✓ 4 peripherals (LHWIT family) |
| Linux | ✓ 2 controllers | ✓ 1 controller | ✓ 2 controllers (discovery, manual) |
- Wire: SDA↔SDA, SCL↔SCL, GND↔GND + 4.7kΩ pull-ups (level shifter 5V↔3.3V)
- Upload
core_usage/arduino/hello_peripheral/+hello_controller/ - Serial (115200):
s(send),r(receive)
See docs/examples.md for detailed documentation.