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