update custom_delay function

Use micros() to delay based on "real-time" instead of approximation with
delay() or delayMicroseconds()

Changed name to _usec to correspond to MicroSeconds.
_ms is MilliSeconds.
This commit is contained in:
Paul Coughlin
2015-08-14 20:22:34 -06:00
parent 11cb3fe442
commit 7aee7fcf89
2 changed files with 15 additions and 13 deletions

View File

@@ -253,7 +253,7 @@ class IRsend
public:
IRsend () { }
void custom_delay_ms (unsigned int time);
void custom_delay_usec (unsigned long uSecs);
void enableIROut (int khz) ;
void mark (int usec) ;
void space (int usec) ;