Learning RC-5 infrared remote control receiver