public DigitalOutputConfigureCommand(Component.Types.DigitalOutputSpec spec)
 {
     this.PinDef     = spec;
     this.StartValue = false;
 }
 internal DigitalOutputConfigureCommand(Component.Types.DigitalOutputSpec spec, bool startValue)
 {
     this.PinDef     = spec;
     this.StartValue = startValue;
 }
Esempio n. 3
0
 public IDigitalOutputConfigureCommand CreateDigitalOutputConfigure(Component.Types.DigitalOutputSpec spec, bool startValue)
 {
     return(new DigitalOutputConfigureCommand(spec, startValue));
 }
Esempio n. 4
0
 /// <summary>
 /// Pins 3-7, 10-14, 27-32, 34-40 and 45-48 can be used with UART
 /// https://github.com/ytai/ioio/wiki/UART
 /// </summary>
 /// <param name="digitalInputSpec"></param>
 /// <param name="digitalOutputSpec"></param>
 /// <param name="baud"></param>
 /// <param name="parity"></param>
 /// <param name="stopbits"></param>
 internal UartConfigureCommand(Component.Types.DigitalInputSpec digitalInputSpec, Component.Types.DigitalOutputSpec digitalOutputSpec, int baud, Component.Types.UartParity parity, Component.Types.UartStopBits stopbits)
 {
     this.Baud     = baud;
     this.Parity   = parity;
     this.StopBits = stopbits;
     this.UartDef  = new UartSpec(digitalInputSpec, digitalOutputSpec);
 }
 public IUartConfigureCommand CreateUartConfigure(Component.Types.DigitalInputSpec rx, Component.Types.DigitalOutputSpec tx, int baud, Component.Types.UartParity parity, Component.Types.UartStopBits stopbits)
 {
     return(new UartConfigureCommand(rx, tx, baud, parity, stopbits));
 }
Esempio n. 6
0
 public ISpiMasterConfigureCommand CreateSpiMasterConfigure(Component.Types.DigitalInputSpec miso, Component.Types.DigitalOutputSpec mosi, Component.Types.DigitalOutputSpec clk, Component.Types.DigitalOutputSpec[] slaveSelect, Component.Types.SpiMasterConfig config)
 {
     return(new SpiMasterConfigureCommand(miso, mosi, clk, slaveSelect, config));
 }