File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 2020 * [ pin\_ strap\_ address] ( #modulino.modulino.Modulino.pin_strap_address )
2121 * [ device\_ type] ( #modulino.modulino.Modulino.device_type )
2222 * [ change\_ address] ( #modulino.modulino.Modulino.change_address )
23+ * [ enter\_ bootloader] ( #modulino.modulino.Modulino.enter_bootloader )
2324 * [ read] ( #modulino.modulino.Modulino.read )
2425 * [ write] ( #modulino.modulino.Modulino.write )
2526 * [ has\_ default\_ address] ( #modulino.modulino.Modulino.has_default_address )
@@ -352,6 +353,21 @@ def change_address(new_address: int)
352353Sets the address of the i2c device to the given value.
353354This is only supported on Modulinos that have a microcontroller.
354355
356+ < a id =" modulino.modulino.Modulino.enter_bootloader" >< / a>
357+
358+ # ## `enter_bootloader`
359+
360+ ```python
361+ def enter_bootloader()
362+ ```
363+
364+ Enters the I2C bootloader of the device.
365+ This is only supported on Modulinos that have a microcontroller.
366+
367+ ** Returns** :
368+
369+ - `bool ` - True if the device entered bootloader mode, False otherwise.
370+
355371< a id = " modulino.modulino.Modulino.read" >< / a>
356372
357373# ## `read`
@@ -404,11 +420,16 @@ or if a custom one was set.
404420
405421```python
406422@ staticmethod
407- def available_devices() -> list[Modulino]
423+ def available_devices(bus: I2C = None ) -> list[Modulino]
408424```
409425
410426Finds all devices on the i2c bus and returns them as a list of Modulino objects.
411427
428+ ** Arguments** :
429+
430+ - `bus` _I2C_ - The I2C bus to use. If not provided, the default I2C bus will be used.
431+
432+
412433** Returns** :
413434
414435- `list ` - A list of Modulino objects.
You can’t perform that action at this time.
0 commit comments