picaxe-08M infrain2

Bond

New Member
Can anyone tell me after issueing the infrain2 command if no infrared signal is received will it wait for ever (or until it sees one) or will it eventally time out? (& contine with the program)

If there is a timeout then how long is it? & is it changable?

Mant thanks
 

BeanieBots

Moderator
It will wait forever.
The X1 has IRIN which can have a timeout.

With other devices, you can monitor the input line (maybe with an interrupt) and only enter the command when you 'know' that an IR signal is present.
 

Bond

New Member
It will wait forever.
The X1 has IRIN which can have a timeout.

With other devices, you can monitor the input line (maybe with an interrupt) and only enter the command when you 'know' that an IR signal is present.
I thought that would proberble be the the answer if any does know anotherway I would be interested to hear it
 

krypton_john

Senior Member
It will wait forever.
The X1 has IRIN which can have a timeout.

With other devices, you can monitor the input line (maybe with an interrupt) and only enter the command when you 'know' that an IR signal is present.
Hi BB,

According to the manual, only the 28X1 and 40X1 have IRIN - the 18X1 is not mentioned. Has anyone verified this is the case?

It's too bad the timer interrupt cannot interrupt an INFRAIN command.
 
Top