@@ -961,7 +961,7 @@ void Force::begin() {
961961
962962
963963// //////////////////////////////////////////////////
964- // t function to updates things on every loop/ /////
964+ // // function to update things on every loop /////
965965// //////////////////////////////////////////////////
966966void Force::run (bool log_data) {
967967 SenseLeft ();
@@ -1391,7 +1391,7 @@ void Force::DispenseLeft() {
13911391 }
13921392 // digitalWrite(A2,HIGH); //A2 will be "reward dispensed" pin
13931393 // digitalWrite(13,HIGH); // RED LED
1394- for (int i=0 ; i < 20 ; i++) {
1394+ for (int i=0 ; i < 30 ; i++) {
13951395 digitalWrite (PUMP1, HIGH);
13961396 delayMicroseconds (100 );
13971397 digitalWrite (PUMP1, LOW);
@@ -1427,7 +1427,7 @@ void Force::DispenseRight() {
14271427 tft.fillRect (12 , 0 , 38 , 24 , ST7735_BLACK); // clear the text after label
14281428 }
14291429 }
1430- for (int i=0 ; i < 20 ; i++) {
1430+ for (int i=0 ; i < 30 ; i++) {
14311431 digitalWrite (PUMP2, HIGH);
14321432 delayMicroseconds (100 );
14331433 digitalWrite (PUMP2, LOW);
@@ -1517,18 +1517,13 @@ void Force::SenseRight() {
15171517// ///////////////////////////
15181518
15191519void Force::prime_dispense () {
1520- tft.setCursor (85 , 44 );
1521- tft.setTextColor (ST7735_WHITE);
1522- tft.print (" Priming!" );
1523- pixels.show ();
1524- for (int i=0 ; i < 250 ; i++) {
1520+ for (int i=0 ; i < 100 ; i++) {
15251521 digitalWrite (PUMP1, HIGH);
15261522 digitalWrite (PUMP2, HIGH);
1527- delayMicroseconds (20 );
1523+ delayMicroseconds (100 );
15281524 digitalWrite (PUMP1, LOW);
15291525 digitalWrite (PUMP2, LOW);
15301526 }
1531- tft.fillRect (84 , 43 , 80 , 12 , ST7735_BLACK);
15321527}
15331528
15341529// /////////////////////////////////
0 commit comments