public McpGpio(MCP230XX_Base mcp, string name) { this._mcp = mcp; this.Mode = PinMode.Output; this.Name = name; this.Index = McpGpio.ExtractGpioIndex(name); }
public void SetPinMode(string gpio, MadeInTheUSB.GPIO.PinMode mode) { SetPinMode(McpGpio.ExtractGpioIndex(gpio), mode); }