CyrusBuilt.MonoPi.IO.GpioMem.internal_Write C# (CSharp) 메소드

internal_Write() 개인적인 정적인 메소드

Write the value to the specified pin.
private static internal_Write ( Int32 pin, PinState value, String pinname ) : void
pin System.Int32 /// The pin to write to. ///
value PinState /// The value to write to the pin. ///
pinname String /// The name of the GPIO associated with the pin. ///
리턴 void
		private static void internal_Write(Int32 pin, PinState value, String pinname) {
			if (pin == (Int32)GpioPins.GPIO_NONE) {
				return;
			}
				
			UnsafeNativeMethods.bcm2835_gpio_write((uint)pin, (uint)value);
			Debug.WriteLine("Output to pin " + pinname + "/gpio" + pin.ToString() + ", value was " + ((Int32)value).ToString());
		}