Feature/wiring#13
Draft
khlam wants to merge 13 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR consolidates all MicroPython I²C driver packages (i2c_bus, atgm336h, mpu6050, qmc5883p, vl53l0x, vl53l5cx) by removing chip-specific backend files (esp32s3.py, rp2040.py, rp2350.py) and unifying them under a single
__init__.pyper package. All dependent projects (compass, distance-stream, gps, gyro-stream, multizone-ranging) are updated to use the new unified driver API, with tests refactored accordingly.What's New
__init__.pymodules.micropython_stubs/machine.pystubs expanded (+51 lines) to support host-side testing of the refactored drivers.test_full_import.py,test_init_sensor.py).What Has Changed
__init__.pyunified (+76/- lines); tests simplified with shared conftest.__init__.py; test suite refactored with fake_uart removal.__init__.py(+39 lines); tests updated for new API.__init__.py; tests updated.__init__.py(+41 lines); tests updated.__init__.py(+39 lines); new conftest and test additions.main.pyupdated to use consolidated driver APIs; tests refactored with simplified conftest fixtures; READMEs updated.machine.pystubs expanded to support host-side testing of refactored drivers.What's Fixed
fake_uart.pyfrom atgm336h tests, reducing test maintenance burden.Testing
i2c_bus,atgm336h,mpu6050,qmc5883p,vl53l0x,vl53l5cx.compass,distance-stream,gps,gyro-stream,multizone-ranging(new).docker compose up pytest --build --exit-code-from pytest(all) or target specific paths.Additional Information
boot_status_led.