コード例 #1
0
 /// <summary>
 /// Called when any pin's mode changes
 /// </summary>
 /// <param name="portExpanderPin">The pin whose mode has changed</param>
 protected override void outputModeChanged(PortExpanderPin portExpanderPin)
 {
     // we set the I/O mode by writing a 1 or 0 to the output port, so just
     // flush out the data
     Flush().Wait();
 }
コード例 #2
0
 /// <summary>
 /// Called when the output value of any pin has changed and should be written to the port
 /// </summary>
 /// <param name="portExpanderPin">The pin whose value changed</param>
 protected override void outputValueChanged(PortExpanderPin portExpanderPin)
 {
     Flush().Wait();
 }