|
14 | 14 | * [\_\_bool\_\_](#modulino.modulino.Modulino.__bool__)
|
15 | 15 | * [connected](#modulino.modulino.Modulino.connected)
|
16 | 16 | * [pin\_strap\_address](#modulino.modulino.Modulino.pin_strap_address)
|
| 17 | + * [device\_type](#modulino.modulino.Modulino.device_type) |
| 18 | + * [change\_address](#modulino.modulino.Modulino.change_address) |
17 | 19 | * [read](#modulino.modulino.Modulino.read)
|
18 | 20 | * [write](#modulino.modulino.Modulino.write)
|
19 | 21 | * [has\_default\_address](#modulino.modulino.Modulino.has_default_address)
|
| 22 | + * [available\_devices](#modulino.modulino.Modulino.available_devices) |
20 | 23 | * [reset\_bus](#modulino.modulino.Modulino.reset_bus)
|
21 | 24 | * [pixels](#modulino.pixels)
|
22 | 25 | * [ModulinoColor](#modulino.pixels.ModulinoColor)
|
@@ -157,6 +160,27 @@ is needed to determine the type of the modulino at boot time, so it know what to
|
157 | 160 | At boot it checks the internal flash in case its address has been overridden by the user
|
158 | 161 | which would take precedence.
|
159 | 162 |
|
| 163 | +<a id="modulino.modulino.Modulino.device_type"></a> |
| 164 | + |
| 165 | +### `device_type` |
| 166 | + |
| 167 | +```python |
| 168 | +@property |
| 169 | +def device_type() |
| 170 | +``` |
| 171 | + |
| 172 | +Returns the type of the modulino based on the pinstrap address. |
| 173 | + |
| 174 | +<a id="modulino.modulino.Modulino.change_address"></a> |
| 175 | + |
| 176 | +### `change_address` |
| 177 | + |
| 178 | +```python |
| 179 | +def change_address(new_address) |
| 180 | +``` |
| 181 | + |
| 182 | +Sets the address of the i2c device to the given value. |
| 183 | + |
160 | 184 | <a id="modulino.modulino.Modulino.read"></a>
|
161 | 185 |
|
162 | 186 | ### `read`
|
@@ -190,6 +214,17 @@ def has_default_address()
|
190 | 214 | Determines if the given modulino has a default address
|
191 | 215 | or if a custom one was set.
|
192 | 216 |
|
| 217 | +<a id="modulino.modulino.Modulino.available_devices"></a> |
| 218 | + |
| 219 | +### `available_devices` |
| 220 | + |
| 221 | +```python |
| 222 | +@staticmethod |
| 223 | +def available_devices() |
| 224 | +``` |
| 225 | + |
| 226 | +Finds all devices on the i2c bus and returns a list of Modulino objects. |
| 227 | + |
193 | 228 | <a id="modulino.modulino.Modulino.reset_bus"></a>
|
194 | 229 |
|
195 | 230 | ### `reset_bus`
|
|
0 commit comments