fast-feedback virtual target task code on STM Nucleo

Dependencies:   mbed

Revision:
3:991c6d5ce19d
Child:
4:fcf597f82632
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rig.cpp	Thu May 17 13:37:43 2018 +0000
@@ -0,0 +1,23 @@
+#include "rig.h"
+
+// the task timer
+Timer        timer;
+
+// state time out
+Timeout      stateTimeout;
+
+// reward time out
+Timeout      rewardTimeout;
+
+// input
+InterruptIn  whiskIn(PA_13);
+InterruptIn  lickIn(PA_14);
+
+// output
+DigitalOut   taskOut(PA_15);
+DigitalOut   cueOut(LED1); // or PA_4
+DigitalOut   enableOut(PA_0);
+DigitalOut   rewardOut(PA_1);
+
+Task        task(Pair);
+Trial       trial;