Skip to content

Commit 596a11b

Browse files
committed
Use digitalInterrupt code. Upgrade arduino.
1 parent 636bc62 commit 596a11b

3 files changed

Lines changed: 18 additions & 18 deletions

File tree

src/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#include "protocol.h"
99

10-
#define SESSION_NUM 3
10+
#define SESSION_NUM 1
1111
#define ANIMAL_NAME "k3"
1212

1313
/*-----------------------------------------------------------------------------

src/main.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,10 @@ void setup()
317317
digitalWrite(ROTARY_ENC_B, HIGH); //turn pullup resistor on
318318

319319
//call updateEncoder() when any high/low changed seen
320-
//attachInterrupt( digitalPinToInterrupt(2), ISR_ON_PIN2, RISING);
321-
attachInterrupt( (2), ISR_ON_PIN2, RISING);
322-
//attachInterrupt( digitalPinToInterrupt(3), ISR_ON_PIN3, RISING);
323-
attachInterrupt( (3), ISR_ON_PIN3, RISING);
320+
attachInterrupt( digitalPinToInterrupt(2), ISR_ON_PIN2, RISING);
321+
// attachInterrupt( (2), ISR_ON_PIN2, RISING);
322+
attachInterrupt( digitalPinToInterrupt(3), ISR_ON_PIN3, RISING);
323+
// attachInterrupt( (3), ISR_ON_PIN3, RISING);
324324

325325

326326
// fixme: move after wait_for_start

src/protocol.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
// These variables are generated by cmake + /home/dilawars/Work/BhallaLab/MouseBehaviour/Protocols/protocol_to_config.py
2-
#define PROTO_NumTrialsInABlock 60
3-
#define PROTO_PreStimDuration_LOW 6000
4-
#define PROTO_USValue "PUFF"
1+
// These variables are generated by cmake + /home/dilawars/Work/GITHUB/BhallaLab/MouseBehaviour/Protocols/protocol_to_config.py
2+
#define PROTO_CODE "All1"
3+
#define PROTO_SessionType 0
4+
#define PROTO_Description "No stim"
5+
#define PROTO_PreStimDuration_LOW 8000
6+
#define PROTO_PreStimDuration_HIGH 8000
57
#define PROTO_CSDuration 50
6-
#define PROTO_NextProbeTrial_HIGH 10
7-
#define PROTO_TraceDuration 450
8-
#define PROTO_Comments "Ananth"
8+
#define PROTO_CSValue "NONE"
9+
#define PROTO_TraceDuration 250
10+
#define PROTO_USDuration 50
11+
#define PROTO_USValue "NONE"
912
#define PROTO_PostStimDuration 8000
10-
#define PROTO_PreStimDuration_HIGH 8000
11-
#define PROTO_CSValue "LIGHT"
12-
#define PROTO_Description "light + 450 trace + puff1"
13-
#define PROTO_CODE "An2"
14-
#define PROTO_SessionType 10
1513
#define PROTO_NextProbeTrial_LOW 6
16-
#define PROTO_USDuration 50
14+
#define PROTO_NextProbeTrial_HIGH 10
15+
#define PROTO_NumTrialsInABlock 60
16+
#define PROTO_Comments "All"

0 commit comments

Comments
 (0)