How do we compile the IRToy.exe ?
..USBIRToy_SourcesoftwareIRToyRecPlay[this program]
In main.h , there is a sleep(2000) which I would like to remove.
#ifdef _WIN32
Sleep(2000); // windows: Sleep for 2000 milliseconds <----- would like to remove this
#else
sleep(2); // linux: sleep for 2 secs
#endif
serial_close(fd);
FREE(param_port);
FREE(param_speed);
FREE(param_fname);
FREE(param_buffin);
printf("n Thank you for playing with the IR Toy! Utility version: %s. n", IRTOY_VERSION);
return 0;
Nevermind, I found the method to play a sequence queue without any handshakes which speeds things up perfectly.
irtoy.exe -d COM2 -h -p -q -a 0 -f filename
if you still want to compile it, You can download code::blocks from www.codeblocks.org (http://www.codeblocks.org). Its free IDE/compiler in one.
Thanks, will do.
Also ignore the above, it's important to -a 500 because -a 0 causes issues and you have to unplug / replug.
irtoy.exe -d COM2 -h -p -q -a 500 -f filename
- filename contains a sequence of files without any params (bin file per line).
- also -h only works "glitch free" if you record short ir button presses. If you make a long recording, with a long press, -h crashes.