Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
rig.cpp
- Committer:
- gwappa
- Date:
- 2018-05-31
- Revision:
- 8:973dcd190672
- Parent:
- 4:fcf597f82632
- Child:
- 9:e136394bdb39
File content as of revision 8:973dcd190672:
#include "rig.h" // the task timer Timer timer; // state time out Timeout stateTimeout; // reward time out Timeout rewardTimeout; // input InterruptIn whiskIn(PC_0); // (Arduino#A5) or USER_BUTTON InterruptIn lickIn(PC_1); // (Arduino#A4) or USER_BUTTON // output DigitalOut taskOut(PB_0); // (Arduino#A3) or LED1(Arduino#13/PA_5) DigitalOut cueOut(PA_4); // (Arduino#A2) or LED1 DigitalOut rewardOut(PA_1); // (Arduino#A1) DigitalOut enableOut(PA_0); // (Arduino#A0) Task task(Pair); Trial trial;