Skip to content

Commit

Permalink
added 200 us delay after emitter state changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-pololu committed Sep 13, 2012
1 parent 7779adc commit 4e957e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions QTRSensors/QTRSensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ void QTRSensors::emittersOff()
return;
pinMode(_emitterPin, OUTPUT);
digitalWrite(_emitterPin, LOW);
delayMicroseconds(200);
}

void QTRSensors::emittersOn()
Expand All @@ -131,6 +132,7 @@ void QTRSensors::emittersOn()
return;
pinMode(_emitterPin, OUTPUT);
digitalWrite(_emitterPin, HIGH);
delayMicroseconds(200);
}

// Resets the calibration.
Expand Down
5 changes: 3 additions & 2 deletions README.textile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
h1. Arduino library for the Pololu QTR reflectance sensors

Version: 2.0.0
Release Date: 2012-02-14
Version: 2.0.1
Release Date: 2012-09-13
"www.pololu.com":http://www.pololu.com/

h2. Summary
Expand All @@ -12,4 +12,5 @@ For documentation, please see the "user's guide":http://www.pololu.com/docs/0J19

h2. Version History

* 2.0.1 (2012-09-13): Added a 200 us delay after emitter state changes to ensure sensors do not start being sampled before the LEDs turn on/off.
* 2.0.0 (2012-02-14): Initial release of library on GitHub (with Arduino 1.0 compatibility).

0 comments on commit 4e957e4

Please sign in to comment.