@jfox, you can use the wiring function delayMicroseconds() or for non-blocking code, you can use micros(). Take a look at this topic about 2/3 down for inspiration if you need you own custom function:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| delayMicroseconds() implemented...I think | 3 | 766 | February 3, 2014 | |
| Delay() does not work (accurately) | 3 | 1812 | August 10, 2014 | |
| Problems with mills(), micros() [Solved] | 3 | 1157 | November 3, 2015 | |
| delayMicroseconds() works strangely in a timer timeout | 6 | 1984 | May 21, 2017 | |
| Micros() not implemented or working yet? | 4 | 1491 | December 17, 2013 |