Documentation ¶
Overview ¶
This is a library to handle Microchip MCP23008 GPIO expansion ic
Index ¶
- func GpioAllOff(module *Mcp23008)
- func GpioAllOn(module *Mcp23008)
- func GpioOff(module *Mcp23008, gpio byte)
- func GpioOn(module *Mcp23008, gpio byte)
- func GpioReverse(module *Mcp23008, gpio byte)
- func GpioSetRead(module *Mcp23008, gpio byte) error
- func Init(device string, add int, module *Mcp23008) error
- func ReadGpio(module *Mcp23008, gpio byte) byte
- func RegisterInterrupt(module *Mcp23008, interrupt chan byte)
- type Mcp23008
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GpioReverse ¶
GpioReverse change state of selected GPIO other one are unchanged
func GpioSetRead ¶
func RegisterInterrupt ¶
This function handle event on GPIOs
Types ¶
Click to show internal directories.
Click to hide internal directories.