KravitzLabDevices / FED3_library

GNU General Public License v3.0
6 stars 17 forks source link

Create a requirement for a minimum poke length to be counted #18

Closed KravitzLab closed 3 years ago

KravitzLab commented 3 years ago

This is now implemented as a variable:

fed3.minPokeTime = 1000;                               //Set minPokeTime to 1000ms
if (fed3.leftInterval > fed3.minPokeTime) {            //Check if the left poke held longer than minPokeTime
      fed3.Feed();                                     //Feed 
}