Test IR Detector
Powersoft
Posts: 72
in Propeller 1
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
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
See: http://forums.parallax.com/discussion/165200/human-interface-board-documentation-needs-correction#latest