File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,8 @@ class EEPROM_I2C(EEPROM):
223
223
Default is ``False``.
224
224
:param wp_pin: (Optional) Physical pin connected to the ``WP`` breakout pin.
225
225
Must be a ``DigitalInOut`` object.
226
+ :param max_int: (Optional) Maximum # bytes stored in the EEPROM.
227
+ Default is ``_MAX_SIZE_I2C``
226
228
"""
227
229
228
230
# pylint: disable=too-many-arguments
@@ -232,13 +234,14 @@ def __init__(
232
234
address : int = 0x50 ,
233
235
write_protect : bool = False ,
234
236
wp_pin : Optional [DigitalInOut ] = None ,
237
+ max_size : int = _MAX_SIZE_I2C ,
235
238
) -> None :
236
239
from adafruit_bus_device .i2c_device import ( # pylint: disable=import-outside-toplevel
237
240
I2CDevice as i2cdev ,
238
241
)
239
242
240
243
self ._i2c = i2cdev (i2c_bus , address )
241
- super ().__init__ (_MAX_SIZE_I2C , write_protect , wp_pin )
244
+ super ().__init__ (max_size , write_protect , wp_pin )
242
245
243
246
def _read_address (self , address : int , read_buffer : bytearray ) -> bytearray :
244
247
write_buffer = bytearray (2 )
You can’t perform that action at this time.
0 commit comments