newest version,

Dependencies:   QEI mbed

Revision:
0:fc6fa085d591
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/check_state.cpp	Fri Oct 23 13:14:57 2015 +0000
@@ -0,0 +1,35 @@
+/*
+ * check_state.cpp
+ *
+ *  Created on: Oct 20, 2015
+ *      Author: User
+ */
+#include <string>
+using namespace std;
+
+string check_state(double left_input, double right_input, double threashold)
+{
+	if (left_input > threashold and right_input > threashold)
+	{
+		return("keypress");
+	}
+
+	else if (left_input > threashold)
+	{
+		return("left");
+	}
+
+	else if (right_input > threashold)
+	{
+		return("left");
+	}
+
+	else
+	{
+		return("rest");
+	}
+}
+
+
+
+