Example

Here are some examples of how to use pifacecommon.

MCP23S17

>>> import pifacecommon.mcp23s17
>>> mcp = pifacecommon.mcp23s17.MCP23S17()
>>> mcp.gpioa.value = 0xAA
>>> mcp.gpioa.value
170
>>> mcp.gpioa.bits[3].value
1

Table Of Contents

Previous topic

Installation

Next topic

Reference

This Page