Permalink
Browse files

Removed the Arduino options as there is now a plug-out for the Arduino.

  • Loading branch information...
IAmCoder committed Dec 29, 2014
1 parent 5405986 commit f9529129226790e70d115e5d555b29f1840006b1
@@ -436,25 +436,25 @@
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_EC3326BCFA27E41E008BF96F31AF701D"
"OwnerKey" = "8:_74CAE4B0BF7440C18EA8ED97292C459A"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_6B45C459D4A750622FA3111F9D1F4BD4"
"OwnerKey" = "8:_5F508BE74620448590AA64015A83B06E"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_27F428A76D28178FF942F262BB58A5FF"
"OwnerKey" = "8:_4DFAFBD87DA4416CB63C9BA146EFAF4A"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_121331E080F04BCFC78738D37B296F56"
"OwnerKey" = "8:_474ED167572C3F1CF1379B2271821C01"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
@@ -466,25 +466,25 @@
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_474ED167572C3F1CF1379B2271821C01"
"OwnerKey" = "8:_121331E080F04BCFC78738D37B296F56"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_4DFAFBD87DA4416CB63C9BA146EFAF4A"
"OwnerKey" = "8:_27F428A76D28178FF942F262BB58A5FF"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_5F508BE74620448590AA64015A83B06E"
"OwnerKey" = "8:_6B45C459D4A750622FA3111F9D1F4BD4"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_74CAE4B0BF7440C18EA8ED97292C459A"
"OwnerKey" = "8:_EC3326BCFA27E41E008BF96F31AF701D"
"MsmSig" = "8:_UNDEFINED"
}
}
@@ -584,7 +584,7 @@
{
"Name" = "8:.NET Framework"
"Message" = "8:[VSDNETMSG]"
"FrameworkVersion" = "8:3.5.30729 "
"FrameworkVersion" = "8:3.5.30729 "
"AllowLaterVersions" = "11:FALSE"
"InstallUrl" = "8:http://go.microsoft.com/fwlink/?LinkId=76617"
}
@@ -2275,15 +2275,15 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Lucid Scribe ThinkGear EEG"
"ProductCode" = "8:{E6A4444C-5D08-43B1-B173-C825D7C07673}"
"PackageCode" = "8:{7667F75E-F89D-40E1-A6B7-0998A51C3413}"
"ProductCode" = "8:{DB14E410-F1E8-45BE-B64A-EC814D9329F5}"
"PackageCode" = "8:{7ACD137F-3AFB-4C69-B35F-E6889976698E}"
"UpgradeCode" = "8:{9B1E2A82-9D73-4675-9717-2311206ABC4E}"
"AspNetVersion" = "8:4.0.30319.0"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:TRUE"
"ProductVersion" = "8:1.1.6"
"ProductVersion" = "8:1.1.7"
"Manufacturer" = "8:lucidcode"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:http://www.lucidcode.com/Contact"
Binary file not shown.
@@ -47,14 +47,6 @@ public static class Device
public static Boolean TCMP = false;
public static Boolean NZT48 = false;

public static Boolean Arduino = false;
public static String ArduinoPort = "COM1";
public static String ArduinoDelay = "1";
public static String ArduinoOn = "1";
public static String ArduinoOff = "0";

public static Boolean REMDetected = false;

public static EventHandler<ThinkGearChangedEventArgs> ThinkGearChanged;

public static Boolean Initialize()
@@ -79,12 +71,6 @@ public static Boolean Initialize()
TCMP = formPort.TCMP;
NZT48 = formPort.NZT48;

Arduino = formPort.Arduino;
ArduinoPort = formPort.ArduinoPort;
ArduinoDelay = formPort.ArduinoDelay;
ArduinoOn = formPort.ArduinoOn;
ArduinoOff = formPort.ArduinoOff;

m_boolInitialized = true;
}
else
@@ -420,7 +406,6 @@ namespace RapidEyeMovement
{
public class PluginHandler : lucidcode.LucidScribe.Interface.LucidPluginBase
{
Thread ArduinoThread;
List<int> m_arrHistory = new List<int>();
public override string Name
{
@@ -520,24 +505,8 @@ public override double Value

if (boolDreaming)
{
// Check if we need to send a message to an arduino
if (Device.Arduino)
{
Device.Arduino = false; // Set false so we don't call it again before the thread completes / after the delay
ArduinoThread = new Thread(TriggerArduino);
ArduinoThread.Start();
}

Device.REMDetected = true;
return 888;
}
else
{
if (Device.REMDetected)
{
Device.REMDetected = false;
}
}

if (intBlinks > 10) { intBlinks = 10; }
return intBlinks * 100;
@@ -561,25 +530,6 @@ public override double Value
}
}

private void TriggerArduino()
{
SerialPort arduinoPort = new SerialPort();
arduinoPort.PortName = Device.ArduinoPort;
arduinoPort.BaudRate = 9600;
arduinoPort.Open();

arduinoPort.WriteLine(Device.ArduinoOn);

int arduinoDelay = Convert.ToInt32(Device.ArduinoDelay) * 60000;
Thread.Sleep(arduinoDelay);

arduinoPort.WriteLine(Device.ArduinoOff);

arduinoPort.Close();
arduinoPort.Dispose();

Device.Arduino = true;
}
}
}

Oops, something went wrong.

0 comments on commit f952912

Please sign in to comment.