Skip to content

Commit 5d213e5

Browse files
committed
bus device: properly register submodules
Closes: #6066 (except for similar work that needs to be done in ulab)
1 parent 918145f commit 5d213e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shared-bindings/adafruit_bus_device/__init__.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,5 @@ const mp_obj_module_t adafruit_bus_device_module = {
7878
};
7979

8080
MP_REGISTER_MODULE(MP_QSTR_adafruit_bus_device, adafruit_bus_device_module, CIRCUITPY_BUSDEVICE);
81+
MP_REGISTER_MODULE(MP_QSTR_adafruit_bus_device_dot_i2c_device, adafruit_bus_device_i2c_device_module, CIRCUITPY_BUSDEVICE);
82+
MP_REGISTER_MODULE(MP_QSTR_adafruit_bus_device_dot_spi_device, adafruit_bus_device_spi_device_module, CIRCUITPY_BUSDEVICE);

0 commit comments

Comments
 (0)