private static void SetVibrate(bool state) { Led.NLED_SETTINGS_INFO info = new Led.NLED_SETTINGS_INFO { LedNum = 1, OffOnBlink = state ? 1 : 0 }; NativeMethods.NLedSetDevice(1, ref info); }
internal static extern bool NLedSetDevice(short nID, ref Led.NLED_SETTINGS_INFO pOutput);