--
You received this message because you are subscribed to the Google Groups "FEDforum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fedforum+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fedforum/815ca80b-0f4f-45ef-a8e5-72050ed1a5ecn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fedforum/7c234057-1ab4-4819-b7ca-4130c8d47224n%40googlegroups.com.
int FED3Active = 1;
void loop() {
if (fed3.currentHour % 2 == 0) {
FED3Active = 0;
fed3.pixelsOff();
}
if (fed3.currentHour % 2 == 1) {
FED3Active = 1;
fed3.pixelsOn(2, 2, 2, 2);
}
fed3.run(); //Call fed.run at least once per loop
if (fed3.Left) { //If left poke is triggered
fed3.logLeftPoke(); //Log left poke
if (FED3Active == 1) { // Test if FED3Active == 1
fed3.ConditionedStimulus(); //Deliver conditioned stimulus (tone and lights for 200ms)
fed3.Feed(); //Deliver pellet
}
}
if (fed3.Right) { //If right poke is triggered
fed3.logRightPoke(); //Log right poke
}
}
To view this discussion on the web visit https://groups.google.com/d/msgid/fedforum/7c29c16a-0eba-4579-85d1-92f55b1111a5n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fedforum/da381477-1999-4682-8d51-41f7a5e0f057n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fedforum/1b204fd4-7c0c-4fa9-9ebd-7736f5500fdfn%40googlegroups.com.