Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AnthonyKNorman/ESP8266_MCP23S17
Micropython library for using the MCP23S17 16-bit IO expander with the ESP8266
https://github.com/AnthonyKNorman/ESP8266_MCP23S17
Last synced: 3 months ago
JSON representation
Micropython library for using the MCP23S17 16-bit IO expander with the ESP8266
- Host: GitHub
- URL: https://github.com/AnthonyKNorman/ESP8266_MCP23S17
- Owner: AnthonyKNorman
- Created: 2017-10-11T09:36:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-11T09:45:48.000Z (about 7 years ago)
- Last Synced: 2024-04-30T06:32:09.170Z (6 months ago)
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-micropython - ESP8266_MCP23S17 - MicroPython library for using the MCP23S17 16-bit I/O expander with the ESP8266. (Libraries / IO)
README
# ESP8266_MCP23S17
Micropython library for using the MCP23S17 16-bit IO expander with the ESP8266MCP23S17.py - Fundamentals for driving the MCP23S17
mcp_gpio.py - Extraction to provide simple bit-based io read and write
```python
import mcp_gpio
a = mcp_gpio.GPIO_Pin(5) # a is Pin 5
a.value(1) # write 1 to pin 5
b = mcp_gpio.GPIO_Pin(6) # b is pin 6
c = b.value() # read pin 6 into c
```example.py - Example using mcp_gpio.py