Skip to content

Commit b910ff9

Browse files
authored
Merge pull request #175 from vbratasiuk/example1
Added delay in serial print for stability
2 parents c7d2a20 + 2add419 commit b910ff9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/utils/sensor_test/hall_sensors/hall_sensor_example/hall_sensor_example.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// HallSensor(int hallA, int hallB , int cpr, int index)
1212
// - hallA, hallB, hallC - HallSensor A, B and C pins
1313
// - pp - pole pairs
14-
HallSensor sensor = HallSensor(2, 3, 4, 11);
14+
HallSensor sensor = HallSensor(2, 3, 4, 14);
1515

1616
// Interrupt routine intialisation
1717
// channel A and B callbacks
@@ -44,4 +44,5 @@ void loop() {
4444
Serial.print(sensor.getAngle());
4545
Serial.print("\t");
4646
Serial.println(sensor.getVelocity());
47+
delay(100);
4748
}

0 commit comments

Comments
 (0)