Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ariadne!theseas!nfotis From: nfotis@theseas.ntua.gr (Nikolaos Fotis) Newsgroups: comp.sys.amiga.programmer Subject: A "legal" way to access a potentiometer ? Message-ID: <1258@theseas.ntua.gr> Date: 19 Feb 91 12:17:39 GMT Distribution: comp Organization: National Technical University of Athens Lines: 26 Dear Netters, [this is from a friend who's not on the USENET. I'll forward any replies to him, and I'll make a summary of what comes in to the Net -- nfotis] I have tried to connect a potentiometer to the game port of my AMIGA. The problem is, I didn't find the "legal" way to read the pot values. I know that you can do this with the gameport device,but when i tried to modify a source for the joystick ,nothing worked... So,I found a way using some hacks in assembly, but the result wasn't very good (when the pot had the max value,I read something like : 144 144 31 144 144 144 31 31 ....etc. I think that there is an error in timing...). So if anyone can send to me full source code in C and/or assembly for this ,it would be a great help... (Also wait for some strange applications of this....) Thanks, A.Kranidiotis. -- Nikolaos Fotis E-mail: 16 Esperidon St., UUCP: mcsun!ariadne!theseas!nfotis Halandri, GR - 152 32 or InterNet : nfotis@theseas.ntua.gr Athens, GREECE FAX: (+30 01) 77 84 578