@@ -1097,9 +1097,7 @@ void Force::graphLegend() {
10971097 if (trial_available) {
10981098 tft.setCursor (60 ,50 );
10991099 tft.setTextColor (ST7735_WHITE);
1100- tft.print (" Trial Available" );
1101- // tft.print((trial_window - trial_length)/1000, 3);
1102- // tft.fillRect(90, 30, 100, 12, ST7735_BLACK);
1100+ tft.print (" Trial Available" );
11031101 } else {
11041102 tft.fillRect (45 , 30 , 100 , 12 , ST7735_BLACK);
11051103 }
@@ -1464,8 +1462,6 @@ void Force::DispenseLeft() {
14641462 }
14651463 DateTime now = rtc.now ();
14661464 dispenseTime = now.unixtime ();
1467- // digitalWrite(A2, LOW);
1468- // digitalWrite(13, LOW);
14691465 pressTimeLeft = millis ();
14701466 pressLengthLeft = 0 ;
14711467 dispensing = false ;
@@ -1525,6 +1521,7 @@ void Force::SenseLeft() {
15251521 pressLengthLeft = (millis () - pressTimeLeft);
15261522 }
15271523
1524+ // Getting the data ready to send output through BNC
15281525 outputValueLeft = map (gramsLeft, 0 , 200 , 0 , 4095 );
15291526
15301527 if (outputValueLeft > 4000 ) outputValueLeft = 4000 ;
@@ -1539,7 +1536,7 @@ void Force::SenseLeft() {
15391536 pixels.setPixelColor (0 , pixels.Color (0 , outputValueLeft / 100 , outputValueRight / 100 ));
15401537 pixels.show ();
15411538
1542- lickLeft = digitalRead (LICK1) == HIGH;
1539+ // lickLeft = digitalRead(LICK1) == HIGH;
15431540 Tare ();
15441541}
15451542
@@ -1575,10 +1572,19 @@ void Force::SenseRight() {
15751572 pixels.setPixelColor (0 , pixels.Color (0 , outputValueLeft / 100 , outputValueRight / 100 ));
15761573 pixels.show ();
15771574
1578- lickRight = digitalRead (LICK2) == HIGH;
1575+ // lickRight = digitalRead(LICK2) == HIGH;
15791576 Tare ();
15801577}
15811578
1579+ // ////////////////////////////
1580+ // // Check licks ////
1581+ // ///////////////////////////
1582+ void Force::checkLicks () {
1583+ lickLeft = digitalRead (LICK1) == HIGH;
1584+ lickLeft = digitalRead (LICK2) == HIGH;
1585+ }
1586+
1587+
15821588// ////////////////////////////
15831589// // Prime dispense ////
15841590// ///////////////////////////
0 commit comments