Shop OBEX P1 Docs P2 Docs Learn Events
Test IR Detector — Parallax Forums

Test IR Detector

Hello,

I'm do some test with the Human Interface Board for Quickstart.
This board has a IR send/receiver on port 8/9
Try this code but without a result

/*
Test IR Detectors.c
*/
#include "simpletools.h"

int irInput;
int main()
{
while(1)
{
freqout(8, 1, 38000);
irInput = input(9);
print("%c irInput = %d", HOME, irInput);
pause(1000);
}
}

In the documentation it is not clear for me which port is send and receive.
What is wrong with this?

Thanks for any help.

Cheers,

Jan

Comments

Sign In or Register to comment.