Skip to content

Commit

Permalink
lol!
Browse files Browse the repository at this point in the history
  • Loading branch information
tguyenn committed Oct 22, 2024
1 parent 3261003 commit 083ab30
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void setup() {
// set up Serial Communication and sensor pins
Serial.begin(115200);
qtr.setTypeAnalog(); // or setTypeAnalog()
qtr.setSensorPins((const uint8_t[]) {33, 25}, 2); // pin numbers go in the curly brackets {}, and number of pins goes after
qtr.setSensorPins((const uint8_t[]) {33, 32}, 2); // pin numbers go in the curly brackets {}, and number of pins goes after

// calibration sequence
for (uint8_t i = 0; i < 250; i++) {
Expand All @@ -54,7 +54,7 @@ void loop() {
qtr.readLineBlack(sensors); // Get calibrated sensor values returned in the sensors array
Serial.print(sensors[0]);
Serial.print(" ");
Serial.print(sensors[1]);
Serial.println(sensors[1]);
delay(250);
}

Expand Down

0 comments on commit 083ab30

Please sign in to comment.