Ejemplo n.º 1
0
 public GpioOutput(int gpioId, GPIO_OutputMode_Type type, bool initialValue)
     : base(Interops.GPIO_OpenAsOutput(
                gpioId,
                type,
                initialValue ? GPIO_Value_Type.GPIO_Value_High : GPIO_Value_Type.GPIO_Value_Low))
 {
 }
Ejemplo n.º 2
0
 public static extern int GPIO_OpenAsOutput(
     int gpioId, GPIO_OutputMode_Type outputMode, GPIO_Value_Type initialValue);