Hi!
Can you explain to me these functions in IRremote.h with their parameters and when should I use it?(give me a simple example please).
Thank you.
bool isIdle ( ) ;
void custom_delay_usec (unsigned long uSecs);
void enableIROut (int khz) ;
void mark (unsigned int usec) ;
void space (unsigned int usec) ;
void sendRaw (const unsigned int buf[], unsigned int len, unsigned int hz) ;
isIdle(): True if the interface is currently not receiving any pattern.
custom_delay_usec(): A replacement for delayMicroseconds() that works with 32bit integers.
enableIROut(): Initializes the hardware to be able to produce the base wave at the desired frequency.
mark(): Sends a mark (active signal).
space(): Sends a space (inactive signal).
sendRaw(): sends a raw mark/space sequence, you specify the length of the mark and space items in the array in the first paramter, the lengh of that array is in the second parameter and the desired base wave frequency in the third.
All these functions are used inside the library so the library should be example enough. Usually you don't need to call these functions yourself.
pylon:
isIdle(): True if the interface is currently not receiving any pattern.
custom_delay_usec(): A replacement for delayMicroseconds() that works with 32bit integers.
enableIROut(): Initializes the hardware to be able to produce the base wave at the desired frequency.
mark(): Sends a mark (active signal).
space(): Sends a space (inactive signal).
sendRaw(): sends a raw mark/space sequence, you specify the length of the mark and space items in the array in the first paramter, the lengh of that array is in the second parameter and the desired base wave frequency in the third.
All these functions are used inside the library so the library should be example enough. Usually you don't need to call these functions yourself.