Esempio n. 1
0
 /// <summary>
 /// Set the digital pin (IO0 - IO13) to the specified state.
 /// If the analog pins (A0-A5) are configured as digital IOs,
 /// also sets the state of these pins.
 /// A0-A5 are mapped to 14-19
 /// </summary>
 /// <param name="pin">Pin number.</param>
 /// <param name="state">State to set.</param>
 public void DigitalWrite(ArduinoPin pin, State state)
 {
     ArduinoInterop.digitalWrite((uint)pin, (uint)state);
 }
Esempio n. 2
0
 /// <summary>
 /// Set the digital pin (IO0 - IO13) to the specified state.
 /// If the analog pins (A0-A5) are configured as digital IOs,
 /// also sets the state of these pins.
 /// A0-A5 are mapped to 14-19
 /// </summary>
 /// <param name="pin">Pin number.</param>
 /// <param name="state">State to set.</param>
 public void DigitalWrite(uint pin, State state)
 {
     ArduinoInterop.digitalWrite(pin, (uint)state);
 }