File tree Expand file tree Collapse file tree 5 files changed +5
-0
lines changed
Expand file tree Collapse file tree 5 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 2424__version__ = "0.0.0+auto.0"
2525__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MCP230xx.git"
2626
27+
2728# Internal helpers to simplify setting and getting a bit inside an integer.
2829def _get_bit (val , bit : int ) -> int :
2930 return val & (1 << bit ) > 0
Original file line number Diff line number Diff line change 3939_MCP23S08_INTCAP = const (0x08 )
4040_MCP23S08_GPIO = const (0x09 )
4141
42+
4243# pylint: disable=too-many-arguments
4344class MCP23S08 (MCP23SXX ):
4445 """Supports MCP23S08 instance on specified I2C bus and optionally
Original file line number Diff line number Diff line change 4545_MCP23S17_INTCAPA = const (0x10 )
4646_MCP23S17_INTCAPB = const (0x11 )
4747
48+
4849# pylint: disable=too-many-arguments
4950# pylint: disable=too-many-public-methods
5051class MCP23S17 (MCP23SXX ):
Original file line number Diff line number Diff line change 3333MCP23SXX_CODE_READ = 0x41
3434MCP23SXX_CODE_WRITE = 0x40
3535
36+
3637# pylint: disable=too-few-public-methods
3738class MCP23SXX (MCP23XXX ):
3839 """Base class for MCP23Sxx devices."""
Original file line number Diff line number Diff line change 2323__version__ = "0.0.0+auto.0"
2424__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MCP230xx.git"
2525
26+
2627# pylint: disable=too-few-public-methods
2728class MCP23XXX :
2829 """Base class for MCP23xxx devices."""
You can’t perform that action at this time.
0 commit comments