LuckyFace's Systems Lifescience
int light = 0; // 0: no light, 1: cue light, 2: reward lightint lightType = 0; // 1: cue or reward period, 2: cue period, 3: reward periodboolean noC = false;boolean reward = 0; // reward in current trialboolean outcome = 0; // did mouse lick during delay period?boolean waterClear = true; // did mouse lick after water reward? if not, do not give additional waterunsigned long times = 0; // curren..
//// Task related variablesint nTrial = 200; // total trial numberint nCue = 2; // cue number (1, 2, 4)unsigned long valveDuration = 130;unsigned long duration[7] = {500000,1000000,500000,500000,130000,2370000,2000000}; // epoch durationunsigned long rewardProbability[4] = {100, 0, 100, 0}; // unit: percentunsigned long rewardAmount[11] = {0, 30000, 42000, 53000, 64000, 77000, 86000, 92000, 1000..
#define odorPin0 2 // Normally-open valve that transmit fresh air#define odorPin1 3 // cue 1#define odorPin2 4 // cue 2#define odorPin3 5 // cue 3#define odorPin4 6 // cue 4#define odorPin5 7 // final valve // portB (pin 8-13)#define rewardPin 1#define punishmentPin 0#define noRewardPin 2 // used for cheetah notification#define sensorPin 4 // pin 12#define laserPin 5 // pin 13 ARDUINO code의 시작은 ..