public bool EnableBlinkDetection(bool enable) { if (!enable) { _tgState.BlinkStrength = 0; } return(ThinkGear.TG_EnableBlinkDetection(_connectionId, enable ? 1 : 0) == 0); }
void setupNeuro() { tgHandleId = ThinkGear.TG_GetNewConnectionId(); tgConnectionStatus = ThinkGear.TG_Connect(tgHandleId, "\\\\.\\COM3", ThinkGear.BAUD_9600, ThinkGear.STREAM_PACKETS); ThinkGear.TG_EnableBlinkDetection(tgHandleId, 1); }