'IRSENSE.BAS for Picaxe-08M, supporting April 2007 SiChip article 'Uses 2x 08Ms,one sensing & the other a doing Picaxe.See companion 'program (IRDO) & duo layout => www.picaxe.orcon.net.nz/duo.jpg 'Via => stan.swan@gmail.com 27th Feb. 2007 irsense: infrain2 'waits endlessly until IR data received if infra >9 then error 'detects non numeric IR remote key push high 4:pause 100 'pin set high alerts 'doer' 08M data RTS sound 2,(100,10) 'Piezo + parallel LED key press confirm serout 4,t2400,(#infra) 'send IR key value as 'infra' (a.k.a. b13) low 4 'handshake pin set low for 'doer' Picaxe goto irsense 'loop for further IR remote key presses error: sound 2,(60,5,0,5,60,5,0,5,60,5,0,5,60,5,0,5) 'fruity wrong key alert goto irsense