Improve I2C Startup Reliability and Add Repeater Support
This release addresses two important I2C-related issues affecting cyber:bot and MakeCode compatibility.
Bug Fix: I2C Connection Reliability (#6)
Improved the state machine for I2C initialization to ensure consistent startup behavior under these conditions:
- Power on (USB connected or not)
- Reset button press (USB connected or not)
- Loading new scripts with any power switch setting (0, 1, or 2)
This resolves intermittent failures to establish communication between the micro:bit and the cyber:bot board.
Enhancement: I2C Repeater Support (#8)
Added logic equivalent to the i2crepeat
feature from the Python module, enabling the MakeCode extension to:
- Support downstream I2C devices connected via the cyber:bot board
- Mirror the behavior expected in Python-based cyber:bot applications
These changes enhance reliability and compatibility with external I2C devices in classroom and development environments.
- Safe for classroom use
- Backward compatible with previous scripts