https://github.com/8086net/circuitpython_tca9535
CircuitPython library for TCA9535 and PCA9535 16-bit I2C I/O Expanders.
https://github.com/8086net/circuitpython_tca9535
circuitpython expander i2c pca9535 tca9535
Last synced: 10 months ago
JSON representation
CircuitPython library for TCA9535 and PCA9535 16-bit I2C I/O Expanders.
- Host: GitHub
- URL: https://github.com/8086net/circuitpython_tca9535
- Owner: 8086net
- License: mit
- Created: 2025-03-22T14:28:56.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-03-23T16:22:49.000Z (10 months ago)
- Last Synced: 2025-03-23T17:19:45.869Z (10 months ago)
- Topics: circuitpython, expander, i2c, pca9535, tca9535
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CircuitPython_TCA9535
CircuitPython library for TCA9535 and PCA9535 16-bit I2C Multiplexers
```
expander = TCA8535.TCA8535(i2c, address=0x20)
pin5 = expander.get_pin(5)
pin12 = expander.get_pin(12)
pin5.direction=digitalio.Direction.OUTPUT
pin5.value=True
```
Address Reference
-----------------
| A2 | A1 | A0 | Address |
| -- | -- | -- | ------- |
| L | L | L | 32 (decimal) 0x20 (hexadecimal) |
| L | L | H | 33 (decimal) 0x21 (hexadecimal) |
| L | H | L | 34 (decimal) 0x22 (hexadecimal) |
| L | H | H | 35 (decimal) 0x23 (hexadecimal) |
| H | L | L | 36 (decimal) 0x24 (hexadecimal) |
| H | L | H | 37 (decimal) 0x25 (hexadecimal) |
| H | H | L | 38 (decimal) 0x26 (hexadecimal) |
| H | H | H | 39 (decimal) 0x27 (hexadecimal) |