Infrain interrupt?

tsuki_k

New Member
Does anyone know if there is a way to interrupt the infrain command? or maybe have it timeout?

I'm using a picaxe 18x to read in the commands, but i want to toggle an LED when an input is received on input pin 1. but, the program just stops while it waits for a new input.
 

BeanieBots

Moderator
Two options.
Upgrade to a 28X1 which has a timeout.
Or, use an interrupt to detect the presence of an IR signal before entering the infrain command.
 
Top