home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
508.lha
/
IR_RemoteCntrl_AREXX_゚eta
/
ReadMe.pp
/
ReadMe
Wrap
Text File
|
1991-05-06
|
2KB
|
33 lines
This code is an uncompleted version of an IR remote controlled AREXX
utility. It is uncompleted because no one wants to pay me to finish
it (great sadness...) I have placed it in the public domain as an example
of how to read an IR remote control signal using the parallel port.
I take no responsibility for the correctness or usability of this
code. I would apologize for the funkyness of it but I'm giving
it to you for free so just be glad I'm reasonably free with comments
as to what's going on in it.
The code runs as it is on an Amiga 1000 with 1.5M of RAM (I suspect it
will run in 512K also) when compiled using Lattice's V5.04 C compiler
and asm assembler. I've only run it under V1.2 of the operating
system so I don't know how it will work under V1.3 and higher.
I've pulled out all the AREXX specific code so that you don't have
to have AREXX to compile or run it. The file Schematic.ilbm contains
a simple electronics schematic for hooking a Radio Shack IR receiver
to the parallel port on an A1000. NOTE that if you have an Amiga
other than an A1000 you must change the +5Vdc and gnd connections and
use a male connector instead of a female. I think the connections
for other machines is pin 14 = +5Vdc and pin 25 = gnd but don't
trust my memory---verify it!
To try the code, plug in the hardware with the computer off, boot
the computer, run the code, click on the LEARN button, then click
on one of the 20 buttons in the upper right, enter a short name
in the text requestor (next to the AREXX button) hit return and
then press a button on your IR remote (you'll have press it twice
so that it can be verified.) The pattern of the digitized data
will be drawn on the screen followed by the pattern of the
differences between the first and second samples. The code prompts
you for most of this. The rest of it I'll let you figure out for
yourselves. Have fun!
ron@vicorp.com or uunet!vicorp!ron