From 49ec8d22d88f8682cd29d715c80a321ac8dc2cc9 Mon Sep 17 00:00:00 2001 From: Charles Mangin Date: Tue, 14 Jan 2014 15:52:00 -0500 Subject: [PATCH] added calibration BASIC program --- USB_Joystick/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/USB_Joystick/README.md b/USB_Joystick/README.md index f5e559c..cad616e 100644 --- a/USB_Joystick/README.md +++ b/USB_Joystick/README.md @@ -19,7 +19,7 @@ Calibration This BASIC program is helpful in calibrating the RetroConnector Joystick Interface board. Type this in at the BASIC prompt on your Apple II: - 10 print pdl(0) " " pdl(1) " " peek(-16287) " " peek(-16286) + 10 print pdl(0) " " pdl(1) 20 goto 10 Then type *RUN* and hit enter. @@ -28,3 +28,9 @@ While the resulting numbers scroll down the screen, use a small screwdriver to a Most Apple II programs allow for a certain "dead zone" in the middle of the joystick values, so it's not necessary to be precisely 127 at center. +To test buttons along with joystick calibration, the above program can be adjusted so: + + 10 print pdl(0) " " pdl(1) " " peek(-16287) " " peek(-16286) + 20 goto 10 + +The last two values are button 1 and 2. When pressed, they should be *above* 127, when released, *below* 127. \ No newline at end of file